From 7eb1c266a6ef61cb43cf25c2a630385b04870868 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Fri, 17 Aug 2007 23:31:51 +0000 Subject: [PATCH] Fixed error introduced by Controller modifications git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40453 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/control/Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/control/Controller.php b/core/control/Controller.php index 68581d399..fa04a6b3c 100644 --- a/core/control/Controller.php +++ b/core/control/Controller.php @@ -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);