Alexander Nicolaysen Sørnes : objectManager: Show a note when the parent entry as an id of 0
Alexander Nicolaysen Sørnes
asornes at winehq.org
Tue Jul 21 10:14:42 CDT 2009
Module: appdb
Branch: master
Commit: 561682cd231bdc676d822f7c3b1497de007007ef
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=561682cd231bdc676d822f7c3b1497de007007ef
Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date: Tue Jul 21 17:14:19 2009 +0200
objectManager: Show a note when the parent entry as an id of 0
---
include/objectManager.php | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/objectManager.php b/include/objectManager.php
index d8ad2e2..0e1f0df 100644
--- a/include/objectManager.php
+++ b/include/objectManager.php
@@ -1217,10 +1217,11 @@ class ObjectManager
if($sLinkText == 'default')
{
$oParent = $oObject->objectGetParent();
- if(!$oParent)
+ if(!$oParent || !$oParent->objectGetId())
{
echo html_note('Failed to find parent entry', 'No parent entry could be found, even though it is supposed to exist.');
- } else
+ }
+ if($oParent)
{
$oParentOM = new objectManager(get_class($oParent), '', $oParent->objectGetId());
$sClassName = $oParentOM->getOptionalSetting('objectGetClassDisplayName', false);
More information about the wine-cvs
mailing list