refactoring

This commit is contained in:
Roland Gruber 2025-07-30 07:42:35 +02:00
parent 9ac2f2f621
commit e65de659fa

View file

@ -1616,7 +1616,7 @@ class LAMConfig {
* @return boolean true if $value has correct format * @return boolean true if $value has correct format
*/ */
public function set_scriptPath($value) { public function set_scriptPath($value) {
if ($value === null) { if (($value === null) || ($value === '')) {
$this->scriptPath = ""; // optional parameter $this->scriptPath = ""; // optional parameter
} }
elseif (preg_match("/^\\/([a-z0-9_-])+(\\/([a-z0-9_\\.-])+)+$/i", $value)) { elseif (preg_match("/^\\/([a-z0-9_-])+(\\/([a-z0-9_\\.-])+)+$/i", $value)) {