aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/DatabaseObject.class.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2022-07-01 06:42:41 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2022-07-01 06:42:41 +0000
commit652c46de7066b8dc90ef79dff3f26271daf85815 (patch)
tree6a192484dfcd695af5fa6902e2fa7031e8a22350 /lib/classes/DatabaseObject.class.php
parent48789d288cd72f39f01ae53d737d34151b85bb88 (diff)
use correct method calls, fixes #1239
Closes #1239 Merge request studip/studip!754
Diffstat (limited to 'lib/classes/DatabaseObject.class.php')
-rw-r--r--lib/classes/DatabaseObject.class.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/classes/DatabaseObject.class.php b/lib/classes/DatabaseObject.class.php
index b3962e2..22e8df2 100644
--- a/lib/classes/DatabaseObject.class.php
+++ b/lib/classes/DatabaseObject.class.php
@@ -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;
}
}
-
-?>