Changeset 765 for trunk/phpbms/modules/base/include/snapshot_include.php
- Timestamp:
- 01/16/10 12:38:47 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/modules/base/include/snapshot_include.php
r756 r765 35 35 $rolemodifier .= ", '".$role."'"; 36 36 37 $rolemodifier = "AND `roleid` IN(".$rolemodifier.") OR roleid IS NULL";37 $rolemodifier = "AND (`roleid` IN(".$rolemodifier.") OR `roleid` IS NULL)"; 38 38 39 39 }//endif … … 275 275 276 276 if(!$_SESSION["userinfo"]["admin"]) 277 $rolewhere = "AND (`roleid` IN ('".implode($_SESSION["userinfo"]["roles"] )."') OR `roleid` ='' OR `roleid` IS NULL)";277 $rolewhere = "AND (`roleid` IN ('".implode($_SESSION["userinfo"]["roles"], "', '")."') OR `roleid` ='' OR `roleid` IS NULL)"; 278 278 else 279 279 $rolewhere = "";