瀏覽代碼

Optimization: when displaying an object details, do not check data synchro for each and every attribute (the cache did exist but was inoperant)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3634 a333f486-631f-4898-b8df-5754b55c2be0
romainq 10 年之前
父節點
當前提交
9b3c28f6d1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/dbobject.class.php

+ 1 - 1
core/dbobject.class.php

@@ -2839,7 +2839,7 @@ abstract class DBObject implements iDisplay
 	 */
 	public function GetSynchroData()
 	{
-		if ($this->m_aSynchroData == null)
+		if (is_null($this->m_aSynchroData))
 		{
 			$sOQL = "SELECT replica,datasource FROM SynchroReplica AS replica JOIN SynchroDataSource AS datasource ON replica.sync_source_id=datasource.id WHERE replica.dest_class = :dest_class AND replica.dest_id = :dest_id";
 			$oReplicaSet = new DBObjectSet(DBObjectSearch::FromOQL($sOQL), array() /* order by*/, array('dest_class' => get_class($this), 'dest_id' => $this->GetKey()));