mirror of
https://github.com/LDAPAccountManager/lam.git
synced 2025-10-03 09:49:16 +02:00
refactoring
This commit is contained in:
parent
9ac2f2f621
commit
e65de659fa
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue