diff --git a/viewforum.php b/viewforum.php index 4be57bed7..74128bfd3 100644 --- a/viewforum.php +++ b/viewforum.php @@ -36,10 +36,7 @@ } // Sort out who the moderators are and if we are currently a moderator (or an admin) -$mods_array = array(); -if ($cur_forum['moderators'] != '') - $mods_array = unserialize($cur_forum['moderators']); - +$mods_array = ($cur_forum['moderators'] != '') ? unserialize($cur_forum['moderators']) : array(); $is_admmod = ($pun_user['g_id'] == PUN_ADMIN || ($pun_user['g_moderator'] == '1' && array_key_exists($pun_user['username'], $mods_array))) ? true : false; // Can we or can we not post new topics?