[imp] Preferences

Jan Schneider jan@horde.org
Mon, 12 Nov 2001 17:28:22 +0100


Zitat von Cliff Green <green@UMDNJ.EDU>:

> So, if I'm reading you correctly, there's at least four possibilities:
> 1) leave it as it is and put up with those log messages
> 2) add/create at least a place-holder pref for those applications with
> none
> 3) add logic to the Prefs drivers to recognize apps with no prefs
> structures
> 4) remove the (count($prefs == 0) test
> 
> I'd suggest that #2, above, offers structural consistency between apps,
> and
> the least impact on the current logic.
> 
> To test this, I copied turba's prefs.php file to both jonah/config and
> horde/config, and added 
>  @file_exists('./config/prefs.php') &&
> to the $[app]_configured test in index.php for both apps.  The error
> messages went away.
> 
> Am I breaking something by doing this?

No, that should work perfectly. To be sure you should only put a dummy 
array into those prefs.php files, like:
_$prefs['dummy'] = array('value' => 'dummy', 'shared' => false, 'locked' => 
true);

Jan.

:::::::::::::::::::::::::::::::::::::::: 
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::