Commit be5d7afe authored by Adrian Rossouw's avatar Adrian Rossouw Committed by adrian

Fix warning in provision import when no sites are being imported

parent 5dcdb693
......@@ -575,14 +575,13 @@ function _provision_drupal_get_cvs_versions($files) {
function provision_drupal_provision_import($url, &$data) {
$sites = provision_drupal_find_sites();
foreach ($sites as $site => $file) {
if ($site == 'default') {
continue;
}
$info = _provision_drupal_import_site($site);
if ($info['installed']) {
provision_log("notice", "Returning information for $site");
$data['sites'][$site] = $info;
if (is_array($sites)) {
foreach ($sites as $site => $file) {
$info = _provision_drupal_import_site($site);
if ($info['installed']) {
provision_log("notice", "Returning information for $site");
$data['sites'][$site] = $info;
}
}
}
}
......
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