From: Alexandre Emsenhuber Date: Sun, 19 Feb 2012 22:29:51 +0000 (+0000) Subject: Call directly numRows() on the result object instead of DatabaseBase::numRows() X-Git-Tag: 1.31.0-rc.0~24624 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=commitdiff_plain;h=e5ea72e35130c6ad640cb54bee6b017dc986fc30;p=lhc%2Fweb%2Fwiklou.git Call directly numRows() on the result object instead of DatabaseBase::numRows() --- diff --git a/includes/specials/SpecialWatchlist.php b/includes/specials/SpecialWatchlist.php index 092fee24fa..9eb6bdf25b 100644 --- a/includes/specials/SpecialWatchlist.php +++ b/includes/specials/SpecialWatchlist.php @@ -286,7 +286,7 @@ class SpecialWatchlist extends SpecialPage { wfRunHooks('SpecialWatchlistQuery', array(&$conds,&$tables,&$join_conds,&$fields) ); $res = $dbr->select( $tables, $fields, $conds, __METHOD__, $options, $join_conds ); - $numRows = $dbr->numRows( $res ); + $numRows = $res->numRows(); /* Start bottom header */