fix $limit should be $options['limit']
This commit is contained in:
parent
1db59283e3
commit
27bc9d0a50
|
@ -85,12 +85,12 @@ class Group {
|
|||
}
|
||||
if ( isset($options['limit']) ) {
|
||||
if ( is_integer($options['limit']) or ctype_digit($options['limit']) ) {
|
||||
$sql .= ' LIMIT ' . $limit;
|
||||
$sql .= ' LIMIT ' . $options['limit'];
|
||||
} else {
|
||||
$backTrace = debug_backtrace();
|
||||
$file = $backTrace[1]['file'];
|
||||
$line = $backTrace[1]['line'];
|
||||
Error("Invalid value for limit($limit) passed to Group::find from $file:$line");
|
||||
Error("Invalid value for limit(".$options['limit'].") passed to Group::find from $file:$line");
|
||||
return array();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue