elFinderSession: Only start session if it isn't already running

This commit is contained in:
Jonas Schürmann
2016-03-16 14:01:18 +01:00
parent bf35ee56d5
commit 673b0bebc1
+6 -2
View File
@@ -38,8 +38,12 @@ class elFinderSession implements elFinderSessionInterface
*/
public function start()
{
@session_start();
$this->started = session_id()? true : false;
if (session_id()) {
$this->started = true;
} else {
@session_start();
$this->started = session_id() ? true : false;
}
return $this;
}