소스 검색

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