Removed direct references to and

This commit is contained in:
Deon George
2016-08-03 15:56:14 +10:00
parent 4bbf00a3d1
commit a7616960f0
4 changed files with 4 additions and 4 deletions

View File

@@ -121,7 +121,7 @@ abstract class lnApp_Auth_ORM extends Kohana_Auth_ORM {
$uo = parent::get_user($default);
// If we are not logged in, see if there is token for the user
if (is_null($uo) AND $tokenuser AND ($token=Session::instance()->get('token')) OR (! empty($_REQUEST['token']) AND $token=$_REQUEST['token']))
if (is_null($uo) AND $tokenuser AND ($token=Session::instance()->get('token')) OR ($token=Arr::get($_REQUEST,'token')))
$uo = $this->_get_token_user($token);
return $uo;