diff options
author | Evan Prodromou <evan@controlezvous.ca> | 2008-06-22 10:27:13 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlezvous.ca> | 2008-06-22 10:27:13 -0400 |
commit | 313999fc7d374781ed76c158463d5e2ed82763f6 (patch) | |
tree | d00d7169e5a68404e21b82046e22b6df1a3799ee /lib | |
parent | e69f28faab19f6f432a37b663aba4c75b836447c (diff) |
reference calling for objstring
darcs-hash:20080622142713-34904-1cee0bb3dbf54ad9ebb27b9c99fe4166dca3f9e2.gz
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/util.php b/lib/util.php index 11b1bfd5e..2064480cb 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"; } |