Fix formatting on Session::has method.

This commit is contained in:
Taylor Otwell 2011-06-15 11:19:52 -07:00
parent 2ef32608f2
commit 525f53b54c
1 changed files with 6 additions and 6 deletions

View File

@ -77,12 +77,12 @@ public static function has($key)
{
foreach (func_get_args() as $key)
{
if ( ! array_key_exists($key, static::$session['data']) and
! array_key_exists(':old:'.$key, static::$session['data']) and
! array_key_exists(':new:'.$key, static::$session['data']))
{
return false;
}
if ( ! array_key_exists($key, static::$session['data']) and
! array_key_exists(':old:'.$key, static::$session['data']) and
! array_key_exists(':new:'.$key, static::$session['data']))
{
return false;
}
}
return true;