mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-19 00:26:03 +00:00
98_configdb.pm: add parameter check
git-svn-id: https://svn.fhem.de/fhem/trunk@18338 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2bdf8005c1
commit
17eb7c3878
@ -186,10 +186,11 @@ sub CommandConfigdb($$) {
|
||||
}
|
||||
|
||||
when ('reorg') {
|
||||
# $param1 = $param1 ? $param1 : 3;
|
||||
$param1 //= 3;
|
||||
$param1 = 3 unless $param1;
|
||||
return "Invalid paramaeter '$param1' for reorg. Must be a number."
|
||||
unless looks_like_number($param1);
|
||||
Log3('configdb', 4, "configdb: reorg requested with keep: $param1.");
|
||||
$ret = _cfgDB_Reorg($a[1]);
|
||||
$ret = _cfgDB_Reorg($param1);
|
||||
}
|
||||
|
||||
when ('search') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user