]> dev.renevier.net Git - syj.git/blobdiff - application/controllers/helpers/SyjReset.php
routes profile
[syj.git] / application / controllers / helpers / SyjReset.php
index 15a138ecd974c975f93cbac1770af74ce394767a..807f44bcf65488efe71797738e2405e6abbfd2f8 100644 (file)
@@ -1,11 +1,14 @@
 <?php
-/*  This file is part of Syj, Copyright (c) 2010 Arnaud Renevier,
+/*  This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
     and is published under the AGPL license. */
 
 class Syj_Controller_Action_Helper_SyjReset extends Zend_Controller_Action_Helper_Abstract
 {
     public function resetPlaceHolders() {
         $controller = $this->getActionController();
+        if (!$controller->view) {
+            return;
+        }
         $controller->view->jslocales = null;
         $controller->view->headScript()->exchangeArray(array());
         $controller->view->headLink()->exchangeArray(array());