don't try to show non-object
This commit is contained in:
parent
f63702579a
commit
6d72864618
|
@ -1028,6 +1028,9 @@ function common_log_objstring(&$object)
|
||||||
if (is_null($object)) {
|
if (is_null($object)) {
|
||||||
return "null";
|
return "null";
|
||||||
}
|
}
|
||||||
|
if (!($object instanceof DB_DataObject)) {
|
||||||
|
return "(unknown)";
|
||||||
|
}
|
||||||
$arr = $object->toArray();
|
$arr = $object->toArray();
|
||||||
$fields = array();
|
$fields = array();
|
||||||
foreach ($arr as $k => $v) {
|
foreach ($arr as $k => $v) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user