*
* This contains functions for manipulating user preferences in files
*
- * @copyright © 1999-2007 The SquirrelMail Project Team
+ * @copyright © 1999-2009 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
$temp = array(&$username, &$pref_name);
$result = do_hook('get_pref_override', $temp);
- if (!$result) {
+ if (is_null($result)) {
cachePrefValues($data_dir, $username);
if (isset($prefs_cache[$pref_name])) {
$result = $prefs_cache[$pref_name];
} else {
+//FIXME: is there a justification for having two prefs hooks so close? who uses them?
$temp = array(&$username, &$pref_name);
$result = do_hook('get_pref', $temp);
- if (!$result) {
+ if (is_null($result)) {
$result = $default;
}
}