Commit cfac9da9237d27052a66ff19a18eab6b9a28b751

Authored by Neil Blakey-Milner
1 parent 0c19e69a

Make PEAR DB decide on whether my backend database wants TRUE or 1.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3300 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 1 additions and 1 deletions
lib/security/Permission.inc
... ... @@ -428,7 +428,7 @@ class Permission {
428 428 $sql->query(array("SELECT UGL.group_id " . /*ok*/
429 429 "FROM $default->users_groups_table AS UGL INNER JOIN $default->groups_table AS GL ON UGL.group_id = GL.id " .
430 430 "WHERE UGL.user_id = ? " .
431   - "AND is_sys_admin = 1", $iUserID));
  431 + "AND is_sys_admin = ?", array($iUserID, true)));
432 432 if ($sql->next_record()) {
433 433 return true;
434 434 }
... ...