Plugin Directory

Changeset 1335258


Ignore:
Timestamp:
01/25/2016 04:45:57 AM (10 years ago)
Author:
kodeplusdev
Message:

Fix pagination for rates, agent, assignment list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kandy/tags/2.3.0/api/kandy-api-class.php

    r1335255 r1335258  
    698698        $tableRate = $wpdb->prefix . 'kandy_live_chat_rate';
    699699        $agentId = intval($agentId);
    700         $sql = "SELECT * FROM $tableRate WHERE main_user_id = $agentId ORDER BY rated_time DESC";
     700        $sql = "SELECT count(*) FROM $tableRate WHERE main_user_id = $agentId ORDER BY rated_time DESC";
    701701        $result = $wpdb->get_var($sql);
    702702        return (int) $result;
Note: See TracChangeset for help on using the changeset viewer.