From 196c987f741389a3d057efe4f0acfc645cc4b8bf Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 18 Oct 2012 19:25:40 +0000 Subject: [PATCH] Thanks Gerritv for finding this one. Should fix a bug during install and upgrade for single tenant systems. --- core/upgrade/upgrade_domains.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/upgrade/upgrade_domains.php b/core/upgrade/upgrade_domains.php index 3cd464f7ef..73169c41d2 100644 --- a/core/upgrade/upgrade_domains.php +++ b/core/upgrade/upgrade_domains.php @@ -72,7 +72,7 @@ $prep_statement->execute(); $result = $prep_statement->fetchAll(PDO::FETCH_NAMED); foreach($result as $row) { - if (count($result) == 0) { + if (count($result) == 1) { $_SESSION["domain_uuid"] = $row["domain_uuid"]; $_SESSION["domain_name"] = $row['domain_name']; }