Commit 25259afc authored by colan's avatar colan

Issue #2840531 by helmo, colan: Ensure we're dealing with arrays before removing duplicates.

parent a205c4d9
......@@ -19,8 +19,12 @@ class Provision_Config_Drushrc_Alias extends Provision_Config_Drushrc {
function __construct($context, $data = array()) {
parent::__construct($context, $data);
$data['aliases'] = array_unique($data['aliases']);
$data['drush_aliases'] = array_unique($data['drush_aliases']);
if (is_array($data['aliases'])) {
$data['aliases'] = array_unique($data['aliases']);
}
if (is_array($data['drush_aliases'])) {
$data['drush_aliases'] = array_unique($data['drush_aliases']);
}
$this->data = array(
'aliasname' => ltrim($context, '@'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment