public static function isBanned($id_customer)..........WHERE `id_customer` = \''.(int)$id_customer.'\' AND active = 1И в строкеpublic static function isBannedP($id_customer).....AND active = 1
public static function isBanned($id_customer) { if (!Validate::isUnsignedId($id_customer)) { return true; } $cache_id = 'Customer::isBanned_'.(int)$id_customer; if (!Cache::isStored($cache_id)) { $result = (bool)!Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow(' SELECT `id_customer` FROM `'._DB_PREFIX_.'customer` WHERE `id_customer` = \''.(int)$id_customer.'\' AND active = 1 AND `deleted` = 0'); Cache::store($cache_id, $result); return $result; } return Cache::retrieve($cache_id);