aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_comment.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-11-15 09:57:38 +0000
committerplegall <plg@piwigo.org>2010-11-15 09:57:38 +0000
commitf4a0251d7909ccfd399344fa63ac39fdcc9d6339 (patch)
treed55103b5d4c5e602a96ea6e7bdb79369b82884f1 /include/functions_comment.inc.php
parent1859142cc8b0df734320dcb9798896377a5bf35f (diff)
bug 2036 fixed: anti flood limitations for user comments should not apply to
administrators. git-svn-id: http://piwigo.org/svn/branches/2.1@7783 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_comment.inc.php')
-rw-r--r--include/functions_comment.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions_comment.inc.php b/include/functions_comment.inc.php
index 7f2fd9257..15ea86669 100644
--- a/include/functions_comment.inc.php
+++ b/include/functions_comment.inc.php
@@ -131,7 +131,7 @@ SELECT COUNT(*) AS user_exists
$comment_action='reject';
}
- if ($comment_action!='reject' and $conf['anti-flood_time']>0 )
+ if ($comment_action!='reject' and $conf['anti-flood_time']>0 and !is_admin())
{ // anti-flood system
$reference_date = pwg_db_get_flood_period_expression($conf['anti-flood_time']);