PHP Error
Description
strtolower() expects parameter 1 to be string, array given
Source File
C:\wamp\www\framework\web\auth\CAccessControlFilter.php(88)
00076: {
00077: foreach($rules as $rule)
00078: {
00079: if(is_array($rule) && isset($rule[0]))
00080: {
00081: $r=new CAccessRule;
00082: $r->allow=$rule[0]===‘allow’;
00083: foreach(array_slice($rule,1) as $name=>$value)
00084: {
00085: if($name===‘expression’ || $name===‘roles’ || $name===‘message’)
00086: $r->$name=$value;
00087: else
00088: $r->$name=array_map(‘strtolower’,$value);
00089: }
00090: $this->_rules[]=$r;
00091: }
00092: }
00093: }
00094:
00095: /**
00096: * Performs the pre-action filtering.
00097: * @param CFilterChain the filter chain that the filter is on.
00098: * @return boolean whether the filtering process should continue and the action
00099: * should be executed.
00100: */
Stack Trace
#0 unknown(0): strtolower()
#1 C:\wamp\www\framework\web\auth\CAccessControlFilter.php(88): array_map()
#2 C:\wamp\www\framework\web\CController.php(998): CAccessControlFilter->setRules()
#3 C:\wamp\www\framework\web\filters\CInlineFilter.php(59): ProjectController->filterAccessControl()
#4 C:\wamp\www\framework\web\filters\CFilterChain.php(126): CInlineFilter->filter()
#5 C:\wamp\www\framework\web\CController.php(283): CFilterChain->run()
#6 C:\wamp\www\framework\web\CController.php(257): ProjectController->runActionWithFilters()
#7 C:\wamp\www\framework\web\CWebApplication.php(320): ProjectController->run()
#8 C:\wamp\www\framework\web\CWebApplication.php(120): CWebApplication->runController()
#9 C:\wamp\www\framework\base\CApplication.php(135): CWebApplication->processRequest()
#10 C:\wamp\www\trackstar\index.php(12): CWebApplication->run()