Jump to content


Photo

Super Moderators cannot issue warnings to user


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

nice.. thanks alot.. its working now

http://community.inv..._verfilter__409
How does one apply this fix?

How does one apply this fix?


My question exactly. I guess we all need to be coders or something to fix it. This is useless without any instruction.

My question exactly. I guess we all need to be coders or something to fix it. This is useless without any instruction.

http://community.invisionpower.com/tracker/issue-36525-moderators-cannot-warn-user/page__gopid__139239#entry139239

:)
Thank You Peter! This is like a scavenger hunt.
Well that was useless. My files are encrypted. I guess a support tic is in order.
It says there are 6 comments accompanying this... I can't see them!

How do I apply this fix? I'm running 3.2.3