Exactly, empty('1') returns false and therefore it
goes
to the else clause where an error is raised because
'1'
is not in $this->auth_methods.
By adding the check || $method == '1' in the if
clause,
$method gets replaced by a valid authentication
string.
--- Joao Prado Maia <jpm@stripped> wrote:
> Hi,
>
> > simply adding an extra check to the if clause of
> the
> > function auth() for when the variable is "1"
> solved
> > the problem for me.
> >
>
> That makes no sense to me, since empty('1') should
> return false. So
> adding this extra check would make no difference as
> far as I can see.
>
> Are you really saying that it didn't work before,
> but it does after you
> added the extra check?
>
> --Joao
>
>
> --
> Eventum Users Mailing List
> For list archives:
> http://lists.mysql.com/eventum-users
> To unsubscribe:
>
http://lists.mysql.com/eventum-users?unsub=1
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com