public function _update($table, $values, $where = array(), $orderby = array(), $limit = FALSE, $like = array()) { $sql = parent::_update($table, $values, $where, $orderby, $limit, $like); $sta = parent::affected_rows(); //$this->_check_data($table, $values, $where, $orderby, $limit, $like); // Push variables $ar_set = $this->ar_set; $this->ar_set = array(); if (1 == $sta) { $this->_create_audit($table, $sql, self::UPDATE); } // Pop variables $this->ar_set = $ar_set; return $sql; }