Правильнее будет так: $error = ''; if (!$set['mod_forum'] && $rights < 7 || isset ($ban)) $error = 'Форум закрыт';