fix check for errors

This commit is contained in:
Uwe Steinmann 2018-11-09 19:15:27 +01:00
parent fc0d7e22e5
commit 92641e9cea
3 changed files with 3 additions and 3 deletions

View File

@ -127,7 +127,7 @@ $controller->setParam('expires', $expires);
$controller->setParam('sequence', $sequence);
$controller->setParam('attributes', $attributes);
if(!$controller->run()) {
if($controller->getErrorNo()) {
if($controller->getErrorMsg()) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())), $controller->getErrorMsg());
}
}

View File

@ -70,7 +70,7 @@ $controller->setParam('comment', isset($_POST['comment']) ? $_POST['comment'] :
$controller->setParam('version', isset($_POST['version']) ? $_POST['version'] : '');
$controller->setParam('public', isset($_POST['public']) ? $_POST['public'] : '');
if(!$controller->run()) {
if($controller->getErrorNo()) {
if($controller->getErrorMsg()) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())), $controller->getErrorMsg());
}
}

View File

@ -79,7 +79,7 @@ $controller->setParam('comment', $comment);
$controller->setParam('sequence', $sequence);
$controller->setParam('attributes', $attributes);
if(!$controller->run()) {
if($controller->getErrorNo()) {
if($controller->getErrorMsg()) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())), $controller->getErrorMsg());
}
}