ribs icon indicating copy to clipboard operation
ribs copied to clipboard

Undefined Index

Open lordnynex opened this issue 13 years ago • 0 comments

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.

lordnynex avatar Sep 28 '12 21:09 lordnynex