From 313999fc7d374781ed76c158463d5e2ed82763f6 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 22 Jun 2008 10:27:13 -0400 Subject: [PATCH] reference calling for objstring darcs-hash:20080622142713-34904-1cee0bb3dbf54ad9ebb27b9c99fe4166dca3f9e2.gz --- lib/util.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/util.php b/lib/util.php index 11b1bfd5e1..2064480cb5 100644 --- a/lib/util.php +++ b/lib/util.php @@ -762,13 +762,13 @@ function common_debug($msg, $filename=NULL) { } } -function common_log_db_error($object, $verb, $filename=NULL) { - $objstr = common_log_objstring($ojbect); +function common_log_db_error(&$object, $verb, $filename=NULL) { + $objstr = common_log_objstring($object); $last_error = &PEAR::getStaticProperty('DB_DataObject','lastError'); common_log(LOG_ERROR, $last_error->message . '(' . $verb . ' on ' . $objstr . ')', $filename); } -function common_log_objstring($object) { +function common_log_objstring(&$object) { if (is_null($object)) { return "NULL"; } -- 2.39.5