1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-16 20:28:28 +01:00

Bugtracker #4376 - notice removal

This commit is contained in:
e107steved 2008-04-01 19:58:41 +00:00
parent 0ab5df9d75
commit 476b985dd0
2 changed files with 10 additions and 10 deletions

View File

@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_files/shortcode/batch/user_shortcodes.php,v $
| $Revision: 1.11 $
| $Date: 2008-03-27 20:42:20 $
| $Revision: 1.12 $
| $Date: 2008-04-01 19:58:41 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
@ -87,7 +87,7 @@ if(!$chatposts = getcachedvars('total_chatposts'))
}
cachevars('total_chatposts', $chatposts);
}
return round(($user['user_chats']/$chatposts) * 100, 2);
return ($chatposts!=0) ? round(($user['user_chats']/$chatposts) * 100, 2): 0;
SC_END
SC_BEGIN USER_COMMENTPER
@ -97,17 +97,17 @@ if(!$commentposts = getcachedvars('total_commentposts'))
$commentposts = $sql->db_Count("comments");
cachevars('total_commentposts', $commentposts);
}
return round(($user['user_comments']/$commentposts) * 100, 2);
return ($commentposts!=0) ? round(($user['user_comments']/$commentposts) * 100, 2): 0;
SC_END
SC_BEGIN USER_FORUMPER
global $sql, $user;
if(!$forumposts = getcachedvars('total_forumposts'))
{
$forumposts = $sql->db_Count("forum_t");
cachevars('total_forumposts', $forumposts);
$forumposts = (isset($pref['plug_installed']['forum'])) ? $sql->db_Count("forum_t"): 0;
cachevars('total_forumposts', $forumposts);
}
return round(($user['user_forums']/$forumposts) * 100, 2);
return ($forumposts!==0) ? round(($user['user_forums']/$forumposts) * 100, 2): 0;
SC_END
SC_BEGIN USER_LEVEL

View File

@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/user.php,v $
| $Revision: 1.5 $
| $Date: 2008-01-15 22:16:07 $
| $Revision: 1.6 $
| $Date: 2008-04-01 19:58:41 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
@ -161,7 +161,7 @@ else
{
$userList = $sql->db_getList();
$text .= $tp->parseTemplate($USER_SHORT_TEMPLATE_START, TRUE, $user_shortcodes);
$text = $tp->parseTemplate($USER_SHORT_TEMPLATE_START, TRUE, $user_shortcodes);
foreach ($userList as $row)
{
$loop_uid = $row['user_id'];