From 411697fcc8425bd1d0df7f571128f48831aefda3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Sun, 28 Feb 2010 01:43:17 +0100 Subject: [PATCH] Fixes calls to auth_user_* from search.rebuild_db. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- bin/search.rebuild_db.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/search.rebuild_db.php b/bin/search.rebuild_db.php index 966287e..cd7e56c 100755 --- a/bin/search.rebuild_db.php +++ b/bin/search.rebuild_db.php @@ -25,12 +25,12 @@ require('./connect.db.inc.php'); ini_set('memory_limit', "16M"); $globals->debug = 0; // Do not store backtraces -$res = XDB::iterRow("SELECT user_id - FROM auth_user_md5"); +$res = XDB::iterRow('SELECT pid + FROM profiles'); $i = 0; $n = $res->total(); -while ($uid = $res->next()->fetchOneCell()) { - Profile::rebuildSearchTokens($uid); +while ($pid = $res->next()->fetchOneCell()) { + Profile::rebuildSearchTokens($pid); printf("\r%u / %u", ++$i, $n); } -- 2.1.4