X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fdb_prefs.php;h=2e54bed2c22ff9ce5744b73b762d8558dfa2a12b;hb=bf1bfc83b45310bb464d0692b3a44bf4d6bdabce;hp=981177b8feec1796590a015421a7837bb25077de;hpb=c9fcea568afbd85d0dc2978fb8e35ce8f50e56d7;p=squirrelmail.git diff --git a/functions/db_prefs.php b/functions/db_prefs.php index 981177b8..2e54bed2 100644 --- a/functions/db_prefs.php +++ b/functions/db_prefs.php @@ -41,8 +41,11 @@ if (!include_once('DB.php')) { // same error also in abook_database.php require_once(SM_PATH . 'functions/display_messages.php'); $error = _("Could not include PEAR database functions required for the database backend.") . "
\n"; + $error .= sprintf(_("Is PEAR installed, and is the include path set correctly to find %s?"), + 'DB.php') . "
\n"; $error .= _("Please contact your system administrator and report this error."); error_box($error, $color); + exit; } global $prefs_are_cached, $prefs_cache; @@ -53,7 +56,9 @@ global $prefs_are_cached, $prefs_cache; function cachePrefValues($username) { global $prefs_are_cached, $prefs_cache; + sqgetGlobalVar('prefs_are_cached', $prefs_are_cached, SQ_SESSION ); if ($prefs_are_cached) { + sqgetGlobalVar('prefs_cache', $prefs_cache, SQ_SESSION ); return; }