Аргумент | Возможный тип | Описание |
$order_id | — | — |
$query = $this->db->query("SELECT `customer_id` FROM `" . DB_PREFIX . "order` WHERE `order_id` = '".(int)$order_id."'"); if($query->num_rows == 0 || (isset($query->row['customer_id']) && $query->row['customer_id'] == 0)) { return false; }else{ return true; }