Add config nil check

This commit is contained in:
emanuele-f 2020-02-07 09:57:31 +01:00
parent 764a5885e6
commit 80ead56329

View file

@ -131,7 +131,7 @@ function ItemsList:parseConfig(script, conf)
end
function ItemsList:describeConfig(script, hooks_conf)
if not hooks_conf.all then
if((not hooks_conf.all) or (not hooks_conf.all.script_conf)) then
return '' -- disabled, nothing to show
end