From: Jan Schneider Date: Thu, 27 May 2010 12:57:37 +0000 (+0200) Subject: $prefs might not be instantiated here. For whatever reason. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=35e389de60a386533e24b01adfcffe9c896eb611;p=horde.git $prefs might not be instantiated here. For whatever reason. --- 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(