Skip to content
Permalink
Browse files

Removing E_STRICT errors from CakeSession

  • Loading branch information...
lorenzo committed Nov 9, 2010
1 parent 44e9783 commit 09011d10100c100ef83924e0af6e7725e26528c2
Showing with 4 additions and 4 deletions.
  1. +4 −4 cake/libs/cake_session.php
@@ -278,7 +278,7 @@ public static function delete($name) {
* @param array $new New set of variable => value
* @access private
*/
function __overwrite(&$old, $new) {
private static function __overwrite(&$old, $new) {
if (!empty($old)) {
foreach ($old as $key => $var) {
if (!isset($new[$key])) {
@@ -298,7 +298,7 @@ function __overwrite(&$old, $new) {
* @return string Error as string
* @access private
*/
function __error($errorNumber) {
private static function __error($errorNumber) {
if (!is_array(self::$error) || !array_key_exists($errorNumber, self::$error)) {
return false;
} else {
@@ -650,7 +650,7 @@ protected static function _defaultConfig($name) {
*
* @return boolean Success
*/
protected function _startSession() {
protected static function _startSession() {
if (headers_sent()) {
if (empty($_SESSION)) {
$_SESSION = array();
@@ -723,7 +723,7 @@ public static function renew() {
* @return void
* @access private
*/
function __setError($errorNumber, $errorMessage) {
private static function __setError($errorNumber, $errorMessage) {
if (self::$error === false) {
self::$error = array();
}

0 comments on commit 09011d1

Please sign in to comment.
You can’t perform that action at this time.