Permalink
Browse files

BUGFIX Fixed undefined method suser_error() in Cookie::set()

  • Loading branch information...
1 parent b1acd05 commit 07f4cd4a78cc9c44ff694b275294390a55068da4 @halkyon halkyon committed Feb 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 control/Cookie.php
View
@@ -36,7 +36,7 @@ static function set($name, $value, $expiry = 90, $path = null, $domain = null, $
}
} else {
if(self::$report_errors)
- suser_error("Cookie '$name' can't be set. The site started outputting was content at line $line in $file", E_USER_WARNING);
+ user_error("Cookie '$name' can't be set. The site started outputting was content at line $line in $file", E_USER_WARNING);
}
}
@@ -60,4 +60,4 @@ static function set_report_errors($reportErrors) {
static function report_errors() {
return self::$report_errors;
}
-}
+}

2 comments on commit 07f4cd4

Owner

wilr replied Feb 16, 2012

/fail. git blame that.

Contributor

stojg replied Feb 16, 2012

@willrossi which version of PHP are you running on? :)

Please sign in to comment.