Skip to content
Snippets Groups Projects
Commit 3a8e5954 authored by David Siegfried's avatar David Siegfried Committed by Jan-Hendrik Willms
Browse files

fix undefined constants, refs #3239

Merge request studip/studip!2199
parent 17687d23
No related branches found
No related tags found
No related merge requests found
...@@ -377,18 +377,9 @@ class IliasSoap extends StudipSoapClient ...@@ -377,18 +377,9 @@ class IliasSoap extends StudipSoapClient
if ($user_id != "") if ($user_id != "")
$param["user_id"] = $user_id; $param["user_id"] = $user_id;
$result = $this->call('searchObjects', $param); $result = $this->call('searchObjects', $param);
if ($result != false) if ($result)
{ {
//$objects = $this->parseXML($result); return $this->parseIliasObject($result);
$objects = $this->parseIliasObject($result);
// var_dump($objects);
return $objects;
if (count(objects)){
foreach($all_objects as $one_object){
$ret[$one_object['ref_id']] = $one_object;
}
return $ret;
}
} }
return false; return false;
......
...@@ -177,10 +177,10 @@ class StructuralElement extends \SimpleORMap implements \PrivacyObject ...@@ -177,10 +177,10 @@ class StructuralElement extends \SimpleORMap implements \PrivacyObject
{ {
if (is_null($image)) { if (is_null($image)) {
$this->image_id = null; $this->image_id = null;
} elseif (is_a($image, \FileRef)) { } elseif (is_a($image, \FileRef::class)) {
$this->image_id = $image->getId(); $this->image_id = $image->getId();
$this->image_type = \FileRef::class; $this->image_type = \FileRef::class;
} elseif (is_a($image, \StockImage)) { } elseif (is_a($image, \StockImage::class)) {
$this->image_id = $image->getId(); $this->image_id = $image->getId();
$this->image_type = \StockImage::class; $this->image_type = \StockImage::class;
} else { } else {
...@@ -1167,6 +1167,6 @@ SQL; ...@@ -1167,6 +1167,6 @@ SQL;
if ($structuralElements) { if ($structuralElements) {
$storage->addTabularData(_('Courseware Seiten'), 'cw_structural_elements', $structuralElements); $storage->addTabularData(_('Courseware Seiten'), 'cw_structural_elements', $structuralElements);
} }
} }
} }
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