add a return to the error path for new events

This commit is contained in:
Evan Prodromou 2011-08-27 14:56:02 -04:00
parent 8501ddf0ee
commit ebaf5a972e
2 changed files with 4 additions and 3 deletions

View File

@ -233,6 +233,7 @@ class NeweventAction extends Action
} catch (ClientException $ce) {
if ($this->boolean('ajax')) {
$this->outputAjaxError($ce->getMessage());
return;
} else {
$this->error = $ce->getMessage();
$this->showPage();