Alexander Nicolaysen Sørnes : objectManager: Prevent accessing an undefined variable
Alexander Nicolaysen Sørnes
asornes at winehq.org
Thu Jul 30 11:29:49 CDT 2009
Module: appdb
Branch: master
Commit: b8ac180e11b97701d3976401cc85f043255802cb
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=b8ac180e11b97701d3976401cc85f043255802cb
Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date: Thu Jul 30 18:28:50 2009 +0200
objectManager: Prevent accessing an undefined variable
---
include/objectManager.php | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/include/objectManager.php b/include/objectManager.php
index 3af090c..6b324f7 100644
--- a/include/objectManager.php
+++ b/include/objectManager.php
@@ -104,13 +104,12 @@ class ObjectManager
public function setSortInfo($aClean = null)
{
+ $this->oSortInfo = new TableSortInfo($this->makeUrl().'&');
+
/* No use to continue if there are no sortable fields */
if(!$this->getOptionalSetting("objectGetSortableFields", FALSE))
return;
- $this->oSortInfo = null;
- $this->oSortInfo = new TableSortInfo($this->makeUrl().'&');
-
if($aClean)
$this->oSortInfo->ParseArray($aClean, $this->getObject()->objectGetSortableFields());
}
More information about the wine-cvs
mailing list