From ffa7b8975d9e8c035d05728c389707e20bdf7521 Mon Sep 17 00:00:00 2001 From: Tim Steiner <tsteiner2@unl.edu> Date: Thu, 2 Oct 2008 15:56:09 +0000 Subject: [PATCH] Handle ::find(NULL) on Group and User models. --- application/modules/auth/models/GroupModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/modules/auth/models/GroupModel.php b/application/modules/auth/models/GroupModel.php index 0470412b..0d9eafb1 100644 --- a/application/modules/auth/models/GroupModel.php +++ b/application/modules/auth/models/GroupModel.php @@ -225,7 +225,7 @@ class Auth_GroupModel extends Unl_Model } $select->where('parentGroup IN(?)', $group->getId()); } else { - $select->where('parentGroup = ?', $group->getId()); + $select->where($db->quoteInto('parentGroup = ?', $group->getId())); } $records = $select->query()->fetchAll(); -- GitLab