summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-07-04 01:17:37 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-07-04 01:17:37 -0400
commit6d72864618b73271a83aa566f35838bb1a5c57c7 (patch)
tree89aba7a7ea87f94899850bcc6807c62efde45a07 /lib/util.php
parentf63702579a672d35c5db262873a4a22835301074 (diff)
don't try to show non-object
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index a40cd3d54..9e8ec41d2 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -1028,6 +1028,9 @@ function common_log_objstring(&$object)
if (is_null($object)) {
return "null";
}
+ if (!($object instanceof DB_DataObject)) {
+ return "(unknown)";
+ }
$arr = $object->toArray();
$fields = array();
foreach ($arr as $k => $v) {