From 27bc9d0a5094ba1f529e7e4990668ea92ce53c77 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Sat, 15 Sep 2018 09:38:36 -0400 Subject: [PATCH] fix $limit should be $options['limit'] --- web/includes/Group.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/includes/Group.php b/web/includes/Group.php index dae1acb6a..df9fd611e 100644 --- a/web/includes/Group.php +++ b/web/includes/Group.php @@ -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(); } }