Skip to content
Snippets Groups Projects
Commit 652c46de authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

use correct method calls, fixes #1239

Closes #1239

Merge request studip/studip!754
parent 48789d28
No related branches found
No related tags found
No related merge requests found
......@@ -231,7 +231,7 @@ class AuthorObject
return;
}
$this->throwError($no, $str, $line, $file, ERROR_CRITICAL);
echo createErrorReport($this, "Schwerer PHP-Laufzeitfehler");
echo MessageBox::error("Schwerer PHP-Laufzeitfehler");
}
}
......@@ -86,7 +86,7 @@ class DatabaseObject extends AuthorObject
public function setObjectID($objectID)
{
if (empty ($objectID))
throwError(1, _("Die ObjectID darf nicht leer sein."));
$this->throwError(1, _("Die ObjectID darf nicht leer sein."));
else
$this->objectID = $objectID;
}
......@@ -112,7 +112,7 @@ class DatabaseObject extends AuthorObject
public function setAuthorID($authorID)
{
if (empty ($authorID))
throwError(1, _("Die AuthorID darf nicht leer sein."));
$this->throwError(1, _("Die AuthorID darf nicht leer sein."));
else
$this->authorID = $authorID;
}
......@@ -138,11 +138,9 @@ class DatabaseObject extends AuthorObject
public function setRangeID($rangeID)
{
if (empty ($rangeID))
throwError(1, _("Die RangeID darf nicht leer sein."));
$this->throwError(1, _("Die RangeID darf nicht leer sein."));
else
$this->rangeID = $rangeID;
}
}
?>
......@@ -161,7 +161,7 @@ class StudipObject extends AuthorObject {
*/
function setAuthorID ($authorID) {
if (empty ($authorID))
throwError (1, _("Die AuthorID darf nicht leer sein."));
$this->throwError (1, _("Die AuthorID darf nicht leer sein."));
else
$this->authorID = $authorID;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment