mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 01:25:01 +02:00
Fix for upload errors affecting non-main admins.
This commit is contained in:
@@ -1188,7 +1188,7 @@ if ($pref['anon_post'] ? define('ANON', true) : define('ANON', false));
|
||||
|
||||
if (empty($pref['newsposts']) ? define('ITEMVIEW', 15) : define('ITEMVIEW', $pref['newsposts']));
|
||||
|
||||
if ($pref['antiflood1'] == 1)
|
||||
if ($pref['antiflood1'] == 1 && !defined('FLOODPROTECT'))
|
||||
{
|
||||
define('FLOODPROTECT', TRUE);
|
||||
define('FLOODTIMEOUT', max(varset($pref['antiflood_timeout'], 10), 3));
|
||||
|
Reference in New Issue
Block a user