mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
fix check for errors
This commit is contained in:
parent
fc0d7e22e5
commit
92641e9cea
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user