Hi
I haven't found any error ( In my sight )
But how about more simple code :
foreach( $session->prems as $value )
{
if( $value == 'admin_manager' )
$auth = 'yes';
}
----- Original Message -----
From: <MKashlev@a...>
To: "professional php" <pro_php@p...>
Sent: Sunday, September 16, 2001 4:43 AM
Subject: [pro_php] error in administration console (perms)
> when i try to open the page in which I administer the users database by
> adding and removing users, the following is generated:
>
> Fatal error: Only variables can be passed by reference
> in /usr/local/web/data/admin/admin_manager.php on line 16
>
> What does that mean?
>
> On line 16 of the file specified above, I found the following (listing
> lines 15 to 22):
>
> do{
> if ('admin_manager' == $session->perms[key($session->perms)]){
> $auth = "yes";
> }
> }while(next($session->perms));
> if ($auth == "yes"){
> $session->log_user("Entered $val");
>
> what should I do?
>
> Dmitry kashlev
>