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);