Skip to content

Commit

Permalink
Clean up code to make it consistent.
Browse files Browse the repository at this point in the history
  • Loading branch information
Quy Ton committed Jun 8, 2010
1 parent d2fef9e commit b565e2c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions viewforum.php
Expand Up @@ -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?
Expand Down

0 comments on commit b565e2c

Please sign in to comment.