Commit b8620fc5 authored by anarcat's avatar anarcat Committed by anarcat

oops, reversed the logic in the sites checking code

i'm rusty.

See: #441810
parent 1e6718ee
......@@ -318,7 +318,7 @@ function provision_drupal_find_sites() {
if ($dir = opendir("./sites")) {
while (FALSE !== ($subdir = readdir($dir))) {
// skip internal directory pointers
if ($subdir == '.' || $subdir == '..') {
if ($subdir != '.' && $subdir != '..') {
$file = "./sites/$subdir/settings.php";
if (file_exists("$file") && ($subdir != 'default') && !is_link("./sites/$subdir")) {
$sites[$subdir] = $file;
......
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