Skip to content

Commit

Permalink
Make sure we always have an application returned when initializing prefs
Browse files Browse the repository at this point in the history
Bug #12963
  • Loading branch information
slusarz committed Feb 12, 2014
1 parent 0fa10e1 commit 442793c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/Core/lib/Horde/Core/Factory/Identity.php
Expand Up @@ -79,7 +79,7 @@ public function create($user = null, $driver = null)
if (isset($prefs) && ($params['user'] == $registry->getAuth())) {
$params['prefs'] = $prefs;
} else {
$params['prefs'] = $this->_injector->getInstance('Horde_Core_Factory_Prefs')->create($registry->getApp(), array(
$params['prefs'] = $this->_injector->getInstance('Horde_Core_Factory_Prefs')->create($registry->getApp() ?: 'horde', array(
'cache' => false,
'user' => $user
));
Expand Down

0 comments on commit 442793c

Please sign in to comment.