https://bugzilla.wikimedia.org/show_bug.cgi?id=31534

--- Comment #1 from Reedy <[email protected]> 2011-10-22 03:27:25 UTC ---
Try using some somewhat up to date code? ie:

function getIntervalResults( $offset, $limit ) {
    $result = array();
    $db = wfGetDB( DB_SLAVE );
    $res = $db->select(
        array( 'qp_users_polls', 'qu' => 'qp_users' ),
        array( 'qu.uid as uid', 'name as username', 'count(pid) as pidcount' ),
        'qu.uid=qup.uid',
        __METHOD__,
        array( 'GROUP BY' => 'qup.uid',
            'ORDER BY' => $this->order_by,
            'OFFSET' => $offset,
            'LIMIT' => $limit
        )
    );
    foreach( $res as $row ) {
        $result[] = $row;
    }
    return $result;
}

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to