if ($cur_topic['announcement'] == '1') { for ($x = 0;$x<=count($main_options);$x++) { //This is a shitty way of doing this $find = strpos($main_options[$x],'stick'); if ($find !== false) { $main_options[$x] = '
  • '.$lang_announcements['Remove announcement'].'
  • '; break; } } } else if ($cur_topic['sticky'] != '1') { $main_options[] = '
  • '.$lang_announcements['Make announcement'].'
  • '; }