Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined Index #3

Open
lordnynex opened this issue Sep 28, 2012 · 0 comments
Open

Undefined Index #3

lordnynex opened this issue Sep 28, 2012 · 0 comments

Comments

@lordnynex
Copy link

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.

dlundgren added a commit to dlundgren/ribs that referenced this issue Oct 2, 2015
 No longer processes the excludes args if it isn't set
jrust added a commit that referenced this issue Oct 3, 2015
#3 Undefined index when excludes is not set on a backup config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant