]> git.mjollnir.org Git - s9y.git/commitdiff
PHP notice
authorgarvinhicking <garvinhicking>
Tue, 4 Sep 2007 10:12:44 +0000 (10:12 +0000)
committergarvinhicking <garvinhicking>
Tue, 4 Sep 2007 10:12:44 +0000 (10:12 +0000)
docs/NEWS
serendipity_config.inc.php

index a36313d77319e8b8715a0ac66c4f7258ff133585..89c065b6ed57e513750410a3c1dd1005c7d3be64 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -3,6 +3,8 @@
 Version 1.2.1 ()
 ------------------------------------------------------------------------
 
+    * Fix PHP notice about session_start()
+
     * Bulletproof template can now include custom user stylesheets
       (*_style.css) in the dropdown of a colorset. (garvinhicking)
 
index 9f468af903e7c43a3a38cff840b0bd8221048c74..bdf91105891240395af8a715c0a34d465277f942 100644 (file)
@@ -17,7 +17,7 @@ if (!headers_sent()) {
     // Patch by David Vieira-Kurz of majorsecurity.de
     if (!isset($_SESSION['SERVER_GENERATED_SID'])) {
         session_regenerate_id(true);
-        session_start();
+        @session_start();
         header('X-Session-Reinit: true');
         $_SESSION['SERVER_GENERATED_SID'] = true;
     }