Index: trunk/extensions/RecordAdmin/RecordAdmin_body.php |
— | — | @@ -827,8 +827,8 @@ |
828 | 828 | $tbl = $dbr->tableName( 'templatelinks' ); |
829 | 829 | $ty = $dbr->addQuotes( $type ); |
830 | 830 | if ( $count ) { |
831 | | - $row = $dbr->selectRow( $tbl, 'count(0)', "tl_namespace = 10 AND tl_title = $ty", __METHOD__ ); |
832 | | - $records = $row[0]; |
| 831 | + $row = $dbr->selectRow( $tbl, 'count(0) as count', "tl_namespace = 10 AND tl_title = $ty", __METHOD__ ); |
| 832 | + $records = $row->count; |
833 | 833 | } else { |
834 | 834 | $res = $dbr->select( $tbl, 'tl_from', "tl_namespace = 10 AND tl_title = $ty", __METHOD__ ); |
835 | 835 | while ( $row = $dbr->fetchRow( $res ) ) $records[] = Title::newFromID( $row[0] ); |