Only enumerate the variable if it is an array to avoid:
Warning: fclose(): supplied argument is not a valid stream resource in /etc/inc/system.inc on line 147
Only enumerate the variable if it is an array to avoid:
Warning: fclose(): supplied argument is not a valid stream resource in /etc/inc/system.inc on line 147