0; } public static function hasAddiction(int $addictionId, int $uid): bool // пристрастие { return Db::getValue('select count(*) from eff_users where (id_eff between 301 and 304 or id_eff between 321 and 332) and id = ? and uid = ?', [$addictionId, $uid]) > 0; } public static function removeById(int $id): void { Db::sql('update eff_users set delete = unix_timestamp() where id = ?', [$id]); } }