Browse Source

Merge pull request #1501 from Oldiesmann/release-2.1

! $context['from_ajax'] isn't always defined (fixes #1497)
Michael Eshom 10 years ago
parent
commit
14ab71d7f7
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>';