BUG 13974 "Error in triggers in lines of code commented" SOLVED
- Error in triggers in lines of code commented. - Problema Resuelto, Se valida el Script del triggers quitando todo los comnetarios que existe en el codigo antes de ser ejecutado, el cambio se lo realizo en el metodo "setScript($sScript = '')".
This commit is contained in:
@@ -168,6 +168,8 @@ class PMScript
|
||||
list($id, $text) = $token;
|
||||
|
||||
switch ($id) {
|
||||
case T_OPEN_TAG:
|
||||
case T_CLOSE_TAG:
|
||||
case T_COMMENT:
|
||||
case T_ML_COMMENT: //we've defined this
|
||||
case T_DOC_COMMENT: //and this
|
||||
@@ -179,7 +181,7 @@ class PMScript
|
||||
}
|
||||
}
|
||||
|
||||
$result = trim(str_replace(array("<?php", "<?", "?>"), array("", "", ""), $result));
|
||||
$result = trim($result);
|
||||
$sScript = $result;
|
||||
|
||||
$this->sScript = $sScript;
|
||||
|
||||
Reference in New Issue
Block a user