Add missing return after gathering state of PHP modules to disable

This commit is contained in:
cytopia
2018-08-10 09:37:08 +02:00
parent 3ffa64ad3a
commit c41d30c92f

View File

@@ -24,10 +24,11 @@ disable_modules() {
if [ -z "${mods}" ]; then
log "info" "\$${mod_varname} set, but empty. Not disabling any PHP modules." "${debug}"
else
log "info" "Disabling the following PHP modules: ${mods}" "${debug}"
return 0
fi
log "info" "Disabling the following PHP modules: ${mods}" "${debug}"
while read -r mod; do
mod="$( echo "${mod}" | xargs )" # trim