diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-02-14 02:06:32 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-02-14 02:06:32 +0000 |
commit | 7bd2c70ae0f8a2c6ee9a2bbd6ed80f7423bbf173 (patch) | |
tree | 17289c27fc052c0be0b8ed2112d5c79c19867afe /phpBB/viewonline.php | |
parent | 9c534006f17bcd0839c3eeefffdd0a833e794237 (diff) | |
download | forums-7bd2c70ae0f8a2c6ee9a2bbd6ed80f7423bbf173.tar forums-7bd2c70ae0f8a2c6ee9a2bbd6ed80f7423bbf173.tar.gz forums-7bd2c70ae0f8a2c6ee9a2bbd6ed80f7423bbf173.tar.bz2 forums-7bd2c70ae0f8a2c6ee9a2bbd6ed80f7423bbf173.tar.xz forums-7bd2c70ae0f8a2c6ee9a2bbd6ed80f7423bbf173.zip |
removed some template var complexity ... knew I missed at least one thing ...
git-svn-id: file:///svn/phpbb/trunk@2138 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewonline.php')
-rw-r--r-- | phpBB/viewonline.php | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/phpBB/viewonline.php b/phpBB/viewonline.php index ce08a06f4f..a2b258fcb3 100644 --- a/phpBB/viewonline.php +++ b/phpBB/viewonline.php @@ -277,30 +277,21 @@ if( $row = $db->sql_fetchrow($result) ) $l_g_user_s = $lang['Guest_users_online']; } - if ( $registered_users + $hidden_users > 0 ) - { - $template->assign_vars(array( - "TOTAL_REGISTERED_USERS_ONLINE" => sprintf($l_r_user_s, $registered_users) . sprintf($l_h_user_s, $hidden_users)) - ); - } - else + $template->assign_vars(array( + "TOTAL_REGISTERED_USERS_ONLINE" => sprintf($l_r_user_s, $registered_users) . sprintf($l_h_user_s, $hidden_users), + "TOTAL_GUEST_USERS_ONLINE" => sprintf($l_g_user_s, $guest_users)) + ); + + if ( $registered_users + $hidden_users == 0 ) { $template->assign_vars(array( - "TOTAL_REGISTERED_USERS_ONLINE" => sprintf($lang['Reg_users_zero_online'], 0) . sprintf($lang['Hidden_users_zero_online'], 0), "L_NO_REGISTERED_USERS_BROWSING" => $lang['No_users_browsing']) ); } - if ( $guest_users > 0 ) - { - $template->assign_vars(array( - "TOTAL_GUEST_USERS_ONLINE" => sprintf($l_g_user_s, $guest_users)) - ); - } - else + if ( $guest_users == 0 ) { $template->assign_vars(array( - "TOTAL_GUEST_USERS_ONLINE" => sprintf($lang['Guest_users_zero_online'], 0), "L_NO_GUESTS_BROWSING" => $lang['No_users_browsing']) ); } |