Fixed error introduced by Controller modifications

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40453 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-08-17 23:31:51 +00:00
parent 1d3ca74a78
commit 7eb1c266a6
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ class Controller extends ViewableData {
* Pop this controller off the top of the stack.
*/
function popCurrent() {
if($this == self::$controller_stack[0]) {
if($this === self::$controller_stack[0]) {
array_shift(self::$controller_stack);
} else {
user_error("popCurrent called on $this->class controller, but it wasn't at the top of the stack", E_USER_WARNING);