/adei/ui

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/ui

« back to all changes in this revision

Viewing changes to classes/readers/dbreader.php

  • Committer: Suren A. Chilingaryan
  • Date: 2008-10-23 18:14:19 UTC
  • mto: This revision was merged to the branch mainline in revision 71.
  • Revision ID: csa@dside.dyndns.org-20081023181419-oq463t9ykb3mmpxg
Another MySQL escaping fix

Show diffs side-by-side

added added

removed removed

Lines of Context:
366
366
        usleep($this->emit_delays);
367
367
    }
368
368
    $res = $this->db->Query($this->db->SelectRequest($grp->table, array($this->columns['time']), array(
369
 
        "condition" => "\"" . $this->columns['time'] . "\" BETWEEN '" . $this->ImportUnixTime($from) . "' and '" . $this->ImportUnixTime($to) . '\'',
 
369
        "condition" => "{$this->db->col_quote}" . $this->columns['time'] . "{$this->db->col_quote} BETWEEN '" . $this->ImportUnixTime($from) . "' and '" . $this->ImportUnixTime($to) . '\'',
370
370
        "limit" => 1)), DATABASE::FETCH_NUM);
371
371
    if ($res->fetch(PDO::FETCH_NUM)) return true;
372
372
    return false;