Skip to content

Undefined Index #3

@lordnynex

Description

@lordnynex

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions