From: Stéphane Jacob Date: Sun, 28 Feb 2010 00:43:17 +0000 (+0100) Subject: Fixes calls to auth_user_* from search.rebuild_db. X-Git-Tag: xorg/1.0.0~332^2~154 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=411697fcc8425bd1d0df7f571128f48831aefda3;p=platal.git Fixes calls to auth_user_* from search.rebuild_db. Signed-off-by: Stéphane Jacob --- 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); }