phpBMS

Show
Ignore:
Timestamp:
01/16/10 12:38:47 (2 years ago)
Author:
brieb
Message:
  • fixed additional role problems with widget display
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/modules/base/include/snapshot_include.php

    r756 r765  
    3535                $rolemodifier .= ", '".$role."'"; 
    3636 
    37             $rolemodifier = "AND `roleid` IN(".$rolemodifier.") OR roleid IS NULL"; 
     37            $rolemodifier = "AND (`roleid` IN(".$rolemodifier.") OR `roleid` IS NULL)"; 
    3838 
    3939        }//endif 
     
    275275 
    276276        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)"; 
    278278        else 
    279279            $rolewhere = ""; 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.