hello.. change the following line:
$listForums2=(isset($forumEx) && $forumEx!='')?preg_replace('#<option([ ]+)selected="selected"([ ]+)value="('.$forumEx.')">(.*?)</option>#is','',$listForums):$listForums;
to:
$listForums2=(isset($forumEx) && $forumEx!='')?preg_replace('#<option(([ ]+)selected="selected")?([ ]+)value="('.$forumEx.')">(.*?)</option>#is','',$listForums):$listForums;
(the difference is in this part of the code: (([ ]+)selected="selected")? (notice additional brackets and a question mark after the last bracket)
Let us know how it works. |