2
0
forked from Wavyzz/dolibarr
This commit is contained in:
Laurent Destailleur
2022-03-03 02:05:13 +01:00
parent cdf603a7b3
commit 88944656be

View File

@@ -8311,7 +8311,7 @@ function verifCond($strToEvaluate)
//$str = 'if(!('.$strToEvaluate.')) $rights = false;';
//dol_eval($str, 0, 1, '2'); // The dol_eval must contains all the global $xxx used into a condition
//var_dump($strToEvaluate);
$rep = dol_eval($strToEvaluate, 1, 1, '1'); // The dol_eval must contains all the global $xxx used into a condition
$rep = dol_eval($strToEvaluate, 1, 1, '1'); // The dol_eval must contains all the global $xxx for all variables $xxx found into the string condition
$rights = (($rep && strpos($rep, 'Bad string syntax to evaluate') === false) ? true : false);
//var_dump($rights);
}