aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-01-06 21:33:44 +0000
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-01-06 21:33:44 +0000
commit627c1feda5e45c4c0c6cbbc944563d9fc868e8c9 (patch)
tree926fbe2036d5eb3b0b2fd353075d7e3e6b9e45fe
parent017028e0b971272cdcf6d848b65b97d0daa8d452 (diff)
downloadelgg-627c1feda5e45c4c0c6cbbc944563d9fc868e8c9.tar.gz
elgg-627c1feda5e45c4c0c6cbbc944563d9fc868e8c9.tar.bz2
Fixing an upgrade issue relating from invalid (non-existent) usernames
git-svn-id: http://code.elgg.org/elgg/trunk@3786 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/upgrades/2009102801.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/upgrades/2009102801.php b/engine/lib/upgrades/2009102801.php
index fea59b411..b72e0a781 100644
--- a/engine/lib/upgrades/2009102801.php
+++ b/engine/lib/upgrades/2009102801.php
@@ -180,7 +180,7 @@ global $DB_QUERY_CACHE, $DB_PROFILE, $ENTITY_CACHE;
/**
Upgrade file locations
*/
-$users = mysql_query("SELECT guid, username FROM {$CONFIG->dbprefix}users_entity");
+$users = mysql_query("SELECT guid, username FROM {$CONFIG->dbprefix}users_entity WHERE username != ''");
while ($user = mysql_fetch_object($users)) {
$DB_QUERY_CACHE = $DB_PROFILE = $ENTITY_CACHE = array();