aboutsummaryrefslogtreecommitdiff
path: root/lib/models/Courseware/StructuralElement.php
diff options
context:
space:
mode:
authorDavid Siegfried <david.siegfried@uni-vechta.de>2023-09-27 07:55:38 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2023-09-27 07:55:38 +0000
commit34e1aa3300e8d7cfa0c92e7c02d8009d184350fb (patch)
tree63307379d5376ce32d95e4de27ab1a34ab677697 /lib/models/Courseware/StructuralElement.php
parent174f11c56e1ce36296e49549da357db7022bf25e (diff)
fix undefined constants, refs #3239
Merge request studip/studip!2199
Diffstat (limited to 'lib/models/Courseware/StructuralElement.php')
-rw-r--r--lib/models/Courseware/StructuralElement.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/models/Courseware/StructuralElement.php b/lib/models/Courseware/StructuralElement.php
index 11227d2..8c6d1de 100644
--- a/lib/models/Courseware/StructuralElement.php
+++ b/lib/models/Courseware/StructuralElement.php
@@ -177,10 +177,10 @@ class StructuralElement extends \SimpleORMap implements \PrivacyObject
{
if (is_null($image)) {
$this->image_id = null;
- } elseif (is_a($image, \FileRef)) {
+ } elseif (is_a($image, \FileRef::class)) {
$this->image_id = $image->getId();
$this->image_type = \FileRef::class;
- } elseif (is_a($image, \StockImage)) {
+ } elseif (is_a($image, \StockImage::class)) {
$this->image_id = $image->getId();
$this->image_type = \StockImage::class;
} else {
@@ -1167,6 +1167,6 @@ SQL;
if ($structuralElements) {
$storage->addTabularData(_('Courseware Seiten'), 'cw_structural_elements', $structuralElements);
}
-
+
}
}