Alexander Nicolaysen Sørnes : version: Make sure we always return a valid object in objectGetParent()
Alexander Nicolaysen Sørnes
asornes at winehq.org
Tue Jul 21 10:14:41 CDT 2009
Module: appdb
Branch: master
Commit: 8f6927f603e260b403f9153324ad688336b4d940
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=8f6927f603e260b403f9153324ad688336b4d940
Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date: Tue Jul 21 17:11:57 2009 +0200
version: Make sure we always return a valid object in objectGetParent()
---
include/version.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/version.php b/include/version.php
index b1bceae..ae0bc3e 100644
--- a/include/version.php
+++ b/include/version.php
@@ -786,7 +786,7 @@ class version {
public function objectGetParent($sClass = '')
{
/* No id so we can't query the DB, but perhaps an entry is cached? */
- if(!$this->iAppId)
+ if(!$this->iAppId && $this->oApp)
return $this->oApp;
return new application($this->iAppId);
More information about the wine-cvs
mailing list