From 35e389de60a386533e24b01adfcffe9c896eb611 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Thu, 27 May 2010 14:57:37 +0200 Subject: [PATCH] $prefs might not be instantiated here. For whatever reason. --- horde/login.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/horde/login.php b/horde/login.php index 295130e0f..87c2a0f17 100644 --- a/horde/login.php +++ b/horde/login.php @@ -269,7 +269,7 @@ if (!empty($conf['auth']['alternate_login'])) { } /* Build the widget containing the available languages. */ - if (!$is_auth && !$prefs->isLocked('language')) { + if (!$is_auth && isset($prefs) && !$prefs->isLocked('language')) { $tmp = array(); foreach ($langs as $val) { $tmp[$val['val']] = array( -- 2.11.0