From f547b66d6bf00040438ab3ba544bb55aab2f2bb5 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Tue, 28 May 2013 01:13:36 +0200
Subject: [PATCH] check fix if session start is successfull

---
 lib/session/internal.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/session/internal.php b/lib/session/internal.php
index 1f8fda47a9..60aecccc8a 100644
--- a/lib/session/internal.php
+++ b/lib/session/internal.php
@@ -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;
-- 
GitLab