Explorar el Código

If we have to do it, better do it properly: in reference to #193 better check if $user_info['is_guest'] actually exists

Signed-off-by: emanuele <[email protected]>
emanuele hace 11 años
padre
commit
26234d3530
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Sources/Security.php

+ 1 - 1
Sources/Security.php

@@ -106,7 +106,7 @@ function is_not_guest($message = '')
 	global $user_info, $txt, $context, $scripturl;
 
 	// Luckily, this person isn't a guest.
-	if (!$user_info['is_guest'])
+	if (isset($user_info['is_guest']) && !$user_info['is_guest'])
 		return;
 
 	// People always worry when they see people doing things they aren't actually doing...