]> source.dussan.org Git - nextcloud-server.git/commitdiff
check fix if session start is successfull
authorRobin Appelman <icewind@owncloud.com>
Mon, 27 May 2013 23:13:36 +0000 (01:13 +0200)
committerRobin Appelman <icewind@owncloud.com>
Mon, 27 May 2013 23:13:36 +0000 (01:13 +0200)
lib/session/internal.php

index 1f8fda47a9bdcec41dd53ba85b258b5267837fe9..60aecccc8aac255ec08fb7f83cf4b572160c6fe9 100644 (file)
@@ -18,7 +18,8 @@ namespace OC\Session;
 class Internal extends Memory {
        public function __construct($name) {
                session_name($name);
-               if (@session_start()) {
+               session_start();
+               if (!isset($_SESSION)) {
                        throw new \Exception('Failed to start session');
                }
                $this->data = $_SESSION;