summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index 3301c0233..638bd0333 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -852,7 +852,9 @@ function common_save_replies($notice) {
}
$id = $reply->insert();
if (!$id) {
- common_log_db_error($reply, 'INSERT', __FILE__);
+ $last_error = &PEAR::getStaticProperty('DB_DataObject','lastError');
+ common_log(LOG_ERROR, 'DB error inserting reply: ' . $last_error->message);
+ common_server_error('DB error inserting reply: ' . $last_error->message);
return;
}
}