Welcome Guest, Not a member yet? Register   Sign In
Ion Auth - Lightweight Auth System based on Redux Auth 2

[eluser]joytopia[/eluser]
Issue with remember me and extra where

When I ran ION AUTH on three browsers, suddenly I got errors on one browser:

Code:
A PHP Error was encountered

Severity: Notice

Message: Undefined property: Ion_auth_model::$ion_auth

Filename: models/ion_auth_model.php

Line Number: 838


Code:
A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: models/ion_auth_model.php

Line Number: 838


Code:
Ein Datenbankfehler ist aufgetreten

Error Number: 1064

Fehler in der SQL-Syntax. Bitte die korrekte Syntax im Handbuch nachschlagen bei 'id` = '8'' in Zeile 1

UPDATE `users` SET `last_login` = 1270227046 WHERE ` IS NULL AND `id` = '8'

I found out, that it must have something to do with the extra_where function in the library.

So I changed it for the moment:

Code:
public function extra_where()
    {
        $where =& func_get_args();
        
        //$this->_extra_where = count($where) == 1 ? $where[0] : array($where[0] => $where[1]);
        $this->_extra_where = $where[0] ;
    }

Afterwards it worked properly, even when I changed it back again.

I could not reproduce that error, but I think it is an issue with extra_where and remember me.

Best regards
Bernd


Messages In This Thread
Ion Auth - Lightweight Auth System based on Redux Auth 2 - by El Forum - 04-02-2010, 09:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB