aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/upgrade.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/upgrade.php')
-rw-r--r--phpBB/upgrade.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/upgrade.php b/phpBB/upgrade.php
index ebe38d98db..81ee41e41d 100644
--- a/phpBB/upgrade.php
+++ b/phpBB/upgrade.php
@@ -1808,7 +1808,7 @@ if ( !empty($next) )
//
$sql = "SELECT MIN(user_regdate) AS oldest_time
FROM " . USERS_TABLE . "
- WHERE user_regdate > 0";
+ WHERE user_regdate > 0 AND user_id > 0";
$result = query($sql, "Couldn't obtain oldest post time");
$row = $db->sql_fetchrow($result);