Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

dropped error suppression from session_start() in phunction::__constr…

…uct()
  • Loading branch information...
commit 358f899a48812ce24fddb64d6abc7b9950cf1ff7 1 parent 8583c91
@alixaxel authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 phunction.php
View
6 phunction.php
@@ -4,7 +4,7 @@
* The MIT License
* http://creativecommons.org/licenses/MIT/
*
-* phunction 2.5.3 (github.com/alixaxel/phunction/)
+* phunction 2.5.4 (github.com/alixaxel/phunction/)
* Copyright (c) 2011 Alix Axel <alix.axel@gmail.com>
**/
@@ -27,9 +27,9 @@ public function __construct()
self::Redirect(str_ireplace('://www.', '://', self::URL()), null, null, 301);
}
- else if (strlen(session_id()) == 0)
+ else if ((strlen(session_id()) == 0) && (is_writable(session_save_path()) === true))
{
- @session_start();
+ session_start();
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.