From: Jens Frank Date: Mon, 2 May 2005 22:03:56 +0000 (+0000) Subject: SCHEMA_WORK - use pageTable instead of curTable X-Git-Tag: 1.5.0alpha1~10 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=commitdiff_plain;h=0f037a806e173b0358e8b2f92052eb5c3cea3f3e;p=lhc%2Fweb%2Fwiklou.git SCHEMA_WORK - use pageTable instead of curTable --- diff --git a/includes/Article.php b/includes/Article.php index df050746d7..b1de9dcfb7 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -2148,8 +2148,8 @@ class Article { 'GROUP BY hc_id'); $dbw->query("DELETE FROM $hitcounterTable"); $dbw->query('UNLOCK TABLES'); - $dbw->query("UPDATE $curTable,$acchitsTable SET cur_counter=cur_counter + hc_n ". - 'WHERE cur_id = hc_id'); + $dbw->query("UPDATE $pageTable,$acchitsTable SET page_counter=page_counter + hc_n ". + 'WHERE page_id = hc_id'); $dbw->query("DROP TABLE $acchitsTable"); ignore_user_abort( $old_user_abort );