From 7ff6e52edede84e942e21e4f50d79d2358fff688 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Tue, 25 Oct 2011 12:51:37 +0000 Subject: [PATCH] Internal issue: automated tests generating lots of warning SVN:trunk[1647] --- core/dbobject.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/dbobject.class.php b/core/dbobject.class.php index 00c3336e6..8744ded7f 100644 --- a/core/dbobject.class.php +++ b/core/dbobject.class.php @@ -145,8 +145,7 @@ abstract class DBObject { foreach(MetaModel::ListAttributeDefs(get_class($this)) as $sAttCode=>$oAttDef) { - @$bIsLoaded = $this->m_aLoadedAtt[$sAttCode]; - if ($bIsLoaded !== true) + if (!isset($this->m_aLoadedAtt[$sAttCode]) || !$this->m_aLoadedAtt[$sAttCode]) { return false; }