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 ...@@ -231,7 +231,7 @@ class AuthorObject
return; return;
} }
$this->throwError($no, $str, $line, $file, ERROR_CRITICAL); $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 ...@@ -86,7 +86,7 @@ class DatabaseObject extends AuthorObject
public function setObjectID($objectID) public function setObjectID($objectID)
{ {
if (empty ($objectID)) if (empty ($objectID))
throwError(1, _("Die ObjectID darf nicht leer sein.")); $this->throwError(1, _("Die ObjectID darf nicht leer sein."));
else else
$this->objectID = $objectID; $this->objectID = $objectID;
} }
...@@ -112,7 +112,7 @@ class DatabaseObject extends AuthorObject ...@@ -112,7 +112,7 @@ class DatabaseObject extends AuthorObject
public function setAuthorID($authorID) public function setAuthorID($authorID)
{ {
if (empty ($authorID)) if (empty ($authorID))
throwError(1, _("Die AuthorID darf nicht leer sein.")); $this->throwError(1, _("Die AuthorID darf nicht leer sein."));
else else
$this->authorID = $authorID; $this->authorID = $authorID;
} }
...@@ -138,11 +138,9 @@ class DatabaseObject extends AuthorObject ...@@ -138,11 +138,9 @@ class DatabaseObject extends AuthorObject
public function setRangeID($rangeID) public function setRangeID($rangeID)
{ {
if (empty ($rangeID)) if (empty ($rangeID))
throwError(1, _("Die RangeID darf nicht leer sein.")); $this->throwError(1, _("Die RangeID darf nicht leer sein."));
else else
$this->rangeID = $rangeID; $this->rangeID = $rangeID;
} }
} }
?>
...@@ -161,7 +161,7 @@ class StudipObject extends AuthorObject { ...@@ -161,7 +161,7 @@ class StudipObject extends AuthorObject {
*/ */
function setAuthorID ($authorID) { function setAuthorID ($authorID) {
if (empty ($authorID)) if (empty ($authorID))
throwError (1, _("Die AuthorID darf nicht leer sein.")); $this->throwError (1, _("Die AuthorID darf nicht leer sein."));
else else
$this->authorID = $authorID; $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