Super Moderators cannot issue warnings to user
Submitted daditto, Mar 21 2012 06:10 PM | Last updated Aug 11 2012 03:17 PM
diff --git a/admin/applications/members/modules_public/profile/warnings.php b/admin/applications/members/modules_public/profile/warnings.php
index 44bb502..3291c56 100644
--- a/admin/applications/members/modules_public/profile/warnings.php
+++ b/admin/applications/members/modules_public/profile/warnings.php
@@ -121,7 +121,7 @@ class public_members_profile_warnings extends ipsCommand
/* Are we limited per day? */
if ( $this->canWarn and !$this->memberData['g_access_cp'] and $this->settings[ $modType ] != -1 )
{
- $count = $this->DB->buildAndFetch( array( 'select' => 'count(*) as dracula', 'from' => 'members_warn_logs', 'where' => "wl_moderator={$this->memberData['member_id']} AND wl_date>" . time() - 86400 ) );
+ $count = $this->DB->buildAndFetch( array( 'select' => 'count(*) as dracula', 'from' => 'members_warn_logs', 'where' => "wl_moderator={$this->memberData['member_id']} AND wl_date>" . ( time() - 86400 ) ) );
if ( $count['dracula'] >= $this->settings[ $modType ] )
{
$this->canWarn = FALSE;
Tested with PHP 5.3.10
| Status: | Fixed |
| Version: | 3.3.0 |
| Fixed In: | 3.3.1 |











7 Comments
http://community.inv..._verfilter__409
My question exactly. I guess we all need to be coders or something to fix it. This is useless without any instruction.
How do I apply this fix? I'm running 3.2.3