if($threadinfo[open]==0) { if (trim($closereason)=="") $closereason=" closereason='".addslashes($reason)."', "; else $closereason="Wurde wegen Spam von ".$bbuserinfo[username]." geschlossen!"; } else { $closereason=""; }