浏览代码

Strange corner case, not sure if the fix is the good one, seems harmless for now...

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@523 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 15 年之前
父节点
当前提交
d2eac2ed1f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      core/dbobject.class.php

+ 1 - 0
core/dbobject.class.php

@@ -420,6 +420,7 @@ abstract class DBObject
 			}
 			}
 			else
 			else
 			{
 			{
+				$aAvailableFields = array();
 				// retrieve the "external fields" linked to this external key
 				// retrieve the "external fields" linked to this external key
 				foreach (MetaModel::GetExternalFields(get_class($this), $sAttCode) as $oExtField)
 				foreach (MetaModel::GetExternalFields(get_class($this), $sAttCode) as $oExtField)
 				{
 				{