From 5f5f22f5be8964c8c9b9b7d0dfe13210ef740a96 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sat, 15 Feb 2014 13:25:12 +0000 Subject: Fix some PHP notices found indirectly while testing gnutls update. --- langs.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'langs.inc.php') diff --git a/langs.inc.php b/langs.inc.php index 7180c9a1e..59f89b910 100644 --- a/langs.inc.php +++ b/langs.inc.php @@ -112,7 +112,7 @@ function relocate($langs, $page = '', $default_locale = 'en', $force_accept_lang $relocate = sprintf('/%s/%s', $locale->getCompatibleLocale(), $page); $relocate = str_replace('//', '/', $relocate); - if ('cli' != PHP_SAPI && do_redirect) { + if ('cli' != PHP_SAPI && $do_redirect) { header('Location: ' . $relocate); } -- cgit v1.2.1