fix backtrace

pull/2725/head
Isaac Connor 2019-09-26 16:26:28 -04:00
parent fdaee75310
commit b1bcfe8a9b
1 changed files with 1 additions and 0 deletions

View File

@ -92,6 +92,7 @@ class ZM_Object {
if ( is_integer($options['limit']) or ctype_digit($options['limit']) ) {
$sql .= ' LIMIT ' . $options['limit'];
} else {
$backTrace = debug_backtrace();
Error('Invalid value for limit('.$options['limit'].') passed to '.get_class()."::find from ".print_r($backTrace,true));
return array();
}