Merge branch '4.4' into 4.5
This commit is contained in:
commit
53fcd47dfc
|
@ -233,9 +233,7 @@ class Session
|
|||
if (self::config()->get('strict_user_agent_check') && isset($this->data['HTTP_USER_AGENT'])) {
|
||||
if ($this->data['HTTP_USER_AGENT'] !== $this->userAgent($request)) {
|
||||
$this->clearAll();
|
||||
$this->destroy();
|
||||
$this->started = false;
|
||||
$this->start($request);
|
||||
$this->restart($request);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -248,7 +246,7 @@ class Session
|
|||
public function restart(HTTPRequest $request)
|
||||
{
|
||||
$this->destroy();
|
||||
$this->init($request);
|
||||
$this->start($request);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -376,6 +374,7 @@ class Session
|
|||
// http://nz1.php.net/manual/en/function.session-destroy.php
|
||||
unset($_SESSION);
|
||||
$this->data = null;
|
||||
$this->started = false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -600,7 +600,7 @@ class ArrayList extends ViewableData implements SS_List, Filterable, Sortable, L
|
|||
|
||||
$firstRecord = $this->first();
|
||||
|
||||
return array_key_exists($by, $firstRecord);
|
||||
return is_array($firstRecord) ? array_key_exists($by, $firstRecord) : property_exists($by, $firstRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue