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
This commit is contained in:
plegall 2010-11-15 09:57:38 +00:00
parent 1859142cc8
commit f4a0251d79

View file

@ -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']);