Error while accessing rights module

089 {

090 if($name===‘expression’ || $name===‘roles’ || $name===‘message’)

091 $r->$name=$value;

092 else

093 $r->$name=array_map(‘strtolower’,$value);

094 }

095 $this->_rules[]=$r;

096 }

097 }

098 }

099

100 /**

101 * Performs the pre-action filtering.

102 * @param CFilterChain $filterChain the filter chain that the filter is on.

103 * @return boolean whether the filtering process should continue and the action

104 * should be executed.

105 */

Stack Trace

#0

D:\wamp\www\yiiProjects\Framework\Yii\web\auth\CAccessControlFilter.php(93): array_map("strtolower", null)

#1

D:\wamp\www\yiiProjects\Framework\Yii\web\CController.php(1143): CAccessControlFilter->setRules(array(array("allow", "actions" => array("confirm", "run", "error", "ready"), "users" => null), array("deny", "users" => array("*"))))

second param has to be an array cant be string or int

$r->$name=array_map(‘strtolower’,$value); // pass in an array ($value)