Преглед на файлове

! login asked even if admin security is disabled [Bug 4957]

emanuele преди 13 години
родител
ревизия
8c6f9a8ce1
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Sources/Security.php

+ 1 - 1
Sources/Security.php

@@ -40,7 +40,7 @@ function validateSession($type = 'admin')
 	$refreshTime = isset($_GET['xml']) ? 4200 : 3600;
 
 	// Is the security option off?  Or are they already logged in?
-	if (!empty($modSettings['securityDisable' . $type != 'admin' ? '_' . $type : '']) || (!empty($_SESSION[$type . '_time']) && $_SESSION[$type . '_time'] + $refreshTime >= time()))
+	if (!empty($modSettings['securityDisable' . ($type != 'admin' ? '_' . $type : '')]) || (!empty($_SESSION[$type . '_time']) && $_SESSION[$type . '_time'] + $refreshTime >= time()))
 		return;
 
 	require_once($sourcedir . '/Subs-Auth.php');