objectManager: Prevent accessing an undefined variable
This commit is contained in:
@@ -104,13 +104,12 @@ class ObjectManager
|
|||||||
|
|
||||||
public function setSortInfo($aClean = null)
|
public function setSortInfo($aClean = null)
|
||||||
{
|
{
|
||||||
|
$this->oSortInfo = new TableSortInfo($this->makeUrl().'&');
|
||||||
|
|
||||||
/* No use to continue if there are no sortable fields */
|
/* No use to continue if there are no sortable fields */
|
||||||
if(!$this->getOptionalSetting("objectGetSortableFields", FALSE))
|
if(!$this->getOptionalSetting("objectGetSortableFields", FALSE))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
$this->oSortInfo = null;
|
|
||||||
$this->oSortInfo = new TableSortInfo($this->makeUrl().'&');
|
|
||||||
|
|
||||||
if($aClean)
|
if($aClean)
|
||||||
$this->oSortInfo->ParseArray($aClean, $this->getObject()->objectGetSortableFields());
|
$this->oSortInfo->ParseArray($aClean, $this->getObject()->objectGetSortableFields());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user