ribs
ribs copied to clipboard
Undefined Index
When a machine in $a_backupHosts does not have the 'excludes' key set a php notice is generated.
$tmp_excludes = preg_split('/([^\])\s/', $a_backupHosts[$s_configName]['excludes'], -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
does not check the existence of the array key before referencing it.
TOTALLY MINOR. A work around is to include 'excludes' => '', in the host config.