fetch_row() public method

Fetch row of the next row of a Mysql query
public fetch_row ( $result ) : result
$result MySQL result handler
return result row
 /**
  * @see PluginOcsinventoryngOcsClient::getDeletedComputers()
  */
 public function getDeletedComputers()
 {
     if (empty($_SESSION["ocs_deleted_equiv"]["total"])) {
         $query = "SELECT COUNT( * ) FROM `deleted_equiv`";
         $total_count = $this->db->query($query);
         $total = $this->db->fetch_row($total_count);
         $_SESSION["ocs_deleted_equiv"]["total"] = intval($total['0']);
     }
     $count = 0;
     $query = "SELECT `DATE`,`DELETED`,`EQUIVALENT` \n                     FROM `deleted_equiv` ORDER BY `DATE`,`EQUIVALENT` \n                     LIMIT 300";
     $deleted = $this->db->query($query);
     while ($del = $this->db->fetch_assoc($deleted)) {
         $computers[] = $del;
     }
     if (isset($computers)) {
         foreach ($computers as $computer) {
             $res[$computer['DELETED']] = $computer['EQUIVALENT'];
             $count++;
         }
     } else {
         $res = array();
     }
     $_SESSION["ocs_deleted_equiv"]["deleted"] = 0;
     if (empty($_SESSION["ocs_deleted_equiv"]["total"])) {
         $_SESSION["ocs_deleted_equiv"]["deleted"] = $count;
     } else {
         $_SESSION["ocs_deleted_equiv"]["deleted"] += $count;
     }
     $_SESSION["ocs_deleted_equiv"]["last_req"] = $count;
     return $res;
 }