Exactly, empty('1') returns false and therefore it
to the else clause where an error is raised because
is not in $this->auth_methods.
By adding the check || $method == '1' in the if
$method gets replaced by a valid authentication
--- Joao Prado Maia <jpm@stripped> wrote:
> > simply adding an extra check to the if clause of
> > function auth() for when the variable is "1"
> > 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?
> Eventum Users Mailing List
> For list archives:
> To unsubscribe:
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around