|
@@ -2341,10 +2341,12 @@ class SiteController extends ActionController
|
|
|
->execute()
|
|
->execute()
|
|
|
->fetch();
|
|
->fetch();
|
|
|
|
|
|
|
|
- if ((string)$rootUid != (string)$row['db_mountpoints']) {
|
|
|
|
|
- throw new \RuntimeException("The be_user named '" . $expectedUsername . "' has unexpected mounted website(s)");
|
|
|
|
|
|
|
+ if ($row['uid']) {
|
|
|
|
|
+ if ((string)$rootUid != (string)$row['db_mountpoints']) {
|
|
|
|
|
+ throw new \RuntimeException("The be_user named '" . $expectedUsername . "' has unexpected mounted website(s)");
|
|
|
|
|
+ }
|
|
|
|
|
+ $adminUid = $row['uid'];
|
|
|
}
|
|
}
|
|
|
- $adminUid = $row['uid'];
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if ($adminUid == null) {
|
|
if ($adminUid == null) {
|