소스 검색

Optimization/bug (!): Never use the whole object as a placeholder in ApplyParams !!

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3931 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 9 년 전
부모
커밋
0ec001e1db
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 3
      core/metamodel.class.php

+ 5 - 3
core/metamodel.class.php

@@ -4917,9 +4917,11 @@ abstract class MetaModel
 					continue; // Ignore this non-scalar value
 				}
 			}
-
-			$aSearches[] = '$'.$sSearch.'$';
-			$aReplacements[] = (string) $replace;
+			else
+			{
+				$aSearches[] = '$'.$sSearch.'$';
+				$aReplacements[] = (string) $replace;
+			}
 		}
 		return str_replace($aSearches, $aReplacements, $sInput);
 	}