Skip to content

Commit c903ae1

Browse files
added error feedback in callonce()
1 parent 2c753ca commit c903ae1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/equal/orm/ObjectManager.class.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ public function callonce($class, $method, $ids=[], $values=[], $lang=null, $sign
11331133

11341134
$result = [];
11351135

1136-
$lang = ($lang)?$lang:constant('DEFAULT_LANG');
1136+
$lang = ($lang) ? $lang : constant('DEFAULT_LANG');
11371137
$called_class = $class;
11381138
$called_method = $method;
11391139

@@ -1218,6 +1218,7 @@ public function callonce($class, $method, $ids=[], $values=[], $lang=null, $sign
12181218
}
12191219
}
12201220
catch(\Exception $e) {
1221+
trigger_error("ORM::callonce {$class}::{$method} error:".$e->getMessage(), QN_REPORT_ERROR);
12211222
$result = $e->getCode();
12221223
}
12231224

0 commit comments

Comments
 (0)