diff --git a/cake/libs/view/theme.php b/cake/libs/view/theme.php index d1d188c81..ecd2a54a3 100644 --- a/cake/libs/view/theme.php +++ b/cake/libs/view/theme.php @@ -59,7 +59,7 @@ class ThemeView extends View { function __construct (&$controller) { parent::__construct($controller); $this->theme =& $controller->theme; - if(empty($this->theme)) { + if(!empty($this->theme)) { $this->themeWeb = 'themed/'.$this->theme.'/'; $this->themeElement = VIEWS.'themed'.DS.$this->theme.DS.'elements'.DS; $this->themeLayout = VIEWS.'themed'.DS.$this->theme.DS.'layouts'.DS;