mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
elFinderSession: Only start session if it isn't already running
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user