This commit is contained in:
Benoît Burnichon
2016-02-03 18:56:21 +01:00
parent 58b80bf08a
commit afde09645a
8 changed files with 236 additions and 132 deletions

View File

@@ -1,5 +1,4 @@
<?php
/*
* This file is part of Phraseanet
*
@@ -75,10 +74,6 @@ class databox_subdefsStructure implements IteratorAggregate, Countable
return null;
}
/**
*
* @return databox_subdefsStructure
*/
protected function load_subdefs()
{
$sx_struct = $this->databox->get_sxml_structure();
@@ -92,7 +87,7 @@ class databox_subdefsStructure implements IteratorAggregate, Countable
];
if (! $sx_struct) {
return $this;
return;
}
$subdefgroup = $sx_struct->subdefs[0];
@@ -132,8 +127,6 @@ class databox_subdefsStructure implements IteratorAggregate, Countable
}
}
$this->AvSubdefs = $avSubdefs;
return $this;
}
/**