[horde] Horde_Db 2.1.0 trashed Installation
lst_hoe02 at kwsoft.de
lst_hoe02 at kwsoft.de
Tue Mar 4 16:50:45 UTC 2014
Zitat von lst_hoe02 at kwsoft.de:
> Ok, will try out and let you (and maybe others) know about the results.
>
> Thanks
>
> Andreas
Close but not there :-(
in horde/config/hooks.php:
class Horde_Hooks
{
// PREFERENCES INIT: See above for documentation.
public function prefs_init($pref, $value, $username, $scope_ob)
{
switch ($pref) {
case 'from_addr':
// You are responsible for bringing in to the local scope any
// information you need. You can "global" anything else you
// need.
//
// Returns an address: either just the user@ side or a full
// address.
$db_results =
$GLOBALS['injector']->getInstance('Horde_Db_Adapter')
->selectValues('SELECT alias FROM
postfix_virtual_aliases WHERE user_uid = ?',
array($GLOBALS['registry']->getAuth())
);
return array($db_results);
}
}
}
in horde/config/prefs.local.php :
$_prefs['from_addr'] = array(
'value' => '',
'hook' => true,
'type' => 'enum',
'desc' => _("The default e-mail address to use with this identity:")
);
But the drop down list for the identity is empty and the following
error is in the logs:
Mar 4 17:38:21 h2118808 HORDE: [horde] PHP ERROR: Invalid argument
supplied for foreach() [pid 11022 on line 525 of
"/usr/share/php/Horde/Core/Prefs/Ui.php"]
Any idea how to get this working (again)?
Thanks
Andreas
More information about the horde
mailing list