Ignore:
Timestamp:
Nov 3, 2014 6:48:32 PM (11 years ago)
Author:
namnd
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/application/core/MY_Model.php

    r375 r396  
    4747        {
    4848                $sql="SELECT COUNT(".$this->id_name.") as total FROM ".$this->table_name." WHERE ".$data['field']." = '".$data['value']."' LIMIT 1";
     49                if (!isset($this->db->query($sql)->row_array()['total'])) return false;
    4950                if ($this->db->query($sql)->row_array()['total']==1)
    5051                {
Note: See TracChangeset for help on using the changeset viewer.