Fix "Undefined variable: ex"

This commit is contained in:
Asturyan
2014-03-21 09:22:25 +01:00
parent eaf5ab7a7e
commit e402fe051f

View File

@@ -168,7 +168,6 @@ abstract class AbstractSeoCrudController extends AbstractCrudController
// Error (Default: false)
$error_msg = false;
$ex = new \Exception();
// Create the Form from the request
$updateSeoForm = $this->getUpdateSeoForm($this->getRequest());
@@ -223,6 +222,7 @@ abstract class AbstractSeoCrudController extends AbstractCrudController
$this->getParserContext()->addForm($changeForm);
}
if (false !=== $error_msg) {
$this->setupFormErrorContext(
$this->getTranslator()->trans("%obj SEO modification", array('%obj' => $this->objectName)),
$error_msg,
@@ -233,4 +233,5 @@ abstract class AbstractSeoCrudController extends AbstractCrudController
// At this point, the form has errors, and should be redisplayed.
return $this->renderEditionTemplate();
}
}
}