Browse Source

! ['from_ajax'] isn't always defined (fixes #1497)

Signed-off-by: Michael Eshom <[email protected]>
Michael Eshom 10 years ago
parent
commit
087531a533
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Themes/default/Login.template.php

+ 1 - 1
Themes/default/Login.template.php

@@ -16,7 +16,7 @@ function template_login()
 	global $context, $settings, $scripturl, $modSettings, $txt;
 
 	// AJAX request?
-	if ($context['from_ajax'])
+	if (!empty($context['from_ajax']))
 		echo '
 		<script src="', $settings['default_theme_url'], '/scripts/sha1.js', $modSettings['browser_cache'] ,'"></script>';