Fix merge wrongfully performed

(thanks @molkobain & @piRGoif & @odain-cbd)
This commit is contained in:
bruno-ds
2021-02-23 10:24:30 +01:00
parent 88f45a69b1
commit c3cb4fbe75
2 changed files with 23 additions and 9 deletions

View File

@@ -617,8 +617,11 @@ class SetupUtils
clearstatcache();
if (!is_file($sGraphvizPath) || !is_executable($sGraphvizPath)) {
//N°3412 avoid shell injection
return new CheckResult(CheckResult::ERROR,
"$sGraphvizPath could not be executed: Please make sure it is installed and in the path");
$aResult = [];
$aResult[] = new CheckResult(CheckResult::ERROR,
self::GetStringForJsonEncode("$sGraphvizPath could not be executed: Please make sure it is installed and in the path", 'Graphviz could not be executed')
);
return $aResult;
}
if (!utils::IsWindowsEnvironment()){