]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
don't try to show non-object
authorEvan Prodromou <evan@controlyourself.ca>
Sat, 4 Jul 2009 05:17:37 +0000 (01:17 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Sat, 4 Jul 2009 05:17:37 +0000 (01:17 -0400)
lib/util.php

index a40cd3d54bf2558aa5485c8431deaec62bbbd329..9e8ec41d2592a29f46f0aa62195d24ef5ea13fcb 100644 (file)
@@ -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) {