浏览代码

Completing the change [3291]: the cron could not trigger a timeout on the stop watches, and the 'persistent' flag was forcibly set to true (whereas we expect the default value to be false!)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3383 a333f486-631f-4898-b8df-5754b55c2be0
romainq 10 年之前
父节点
当前提交
67d74f4cb1
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      setup/compiler.class.inc.php

+ 4 - 4
setup/compiler.class.inc.php

@@ -974,8 +974,8 @@ EOF;
 						if($oHighlight)
 						{
 							$sCode  = $oHighlight->GetChildText('code');
-							$bPersistent =  $this->GetPropBoolean($oHighlight, 'persistent', false);
-							$sHighlight = "'highlight' => array('code' => '$sCode', 'persistent' => ".($bPersistent ? 'true' : 'false')."), ";
+							$sPersistent =  $this->GetPropBoolean($oHighlight, 'persistent', false);
+							$sHighlight = "'highlight' => array('code' => '$sCode', 'persistent' => $sPersistent), ";
 						}
 						
 						$oActions = $oThreshold->GetUniqueElement('actions');
@@ -995,7 +995,7 @@ EOF;
 									{
 										$sParamType = 'string';
 									}
-									$aActionParams[] = "array('type' => '$sParamType', 'value' => '".self::QuoteForPHP($oParam->textContent)."')";
+									$aActionParams[] = "array('type' => '$sParamType', 'value' => ".self::QuoteForPHP($oParam->textContent).")";
 								}
 							}
 							$sActionParams = 'array('.implode(', ', $aActionParams).')';
@@ -1243,7 +1243,7 @@ EOF;
 								{
 									$sParamType = 'string';
 								}
-								$aActionParams[] = "array('type' => '$sType', 'value' => '".self::QuoteForPHP($oParam->textContent)."')";
+								$aActionParams[] = "array('type' => '$sType', 'value' => ".self::QuoteForPHP($oParam->textContent).")";
 							}
 						}
 						else