View Single Post
Old 09-02-2009, 06:41 PM   #6 (permalink)
Tanax
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

Quote:
Originally Posted by codefreek View Post
at PermissionList.php,

PHP Code:
public function getPermission($type$name)
    {
    
        switch(
$type)
        {
        
            case 
'page':
                if(
array_key_exists($name$this->pages
                {
                
                    return 
$this->pages[$name];
                    
      ---->        ]
                return 
false;
                break;
                
            case 
'feature':
                if(
array_key_exists($name$this->features)
                {
                
                    return 
$this->features[$name];
                    
                }
                return 
false;
                break;
        
        }
    
    }


you have a ] when it should be } might be just a small typo when posting it on the forums just thought you should know.
Hehe, it was a typo in my file aswell as on the forums, so thanks!
__________________
Tanax is offline  
Reply With Quote