From 921bea1a95b547caf664d62d6c30f7e187e43975 Mon Sep 17 00:00:00 2001 From: kink Date: Fri, 18 Oct 2002 15:00:32 +0000 Subject: [PATCH] Be somewhat clearer in the error message: default_pref not readable should not return the error dat data_dir is not writable... fixes #618924. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3916 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/file_prefs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/file_prefs.php b/functions/file_prefs.php index 41299493..8a4287eb 100644 --- a/functions/file_prefs.php +++ b/functions/file_prefs.php @@ -179,9 +179,9 @@ function checkForPrefs($data_dir, $username, $filename = '') { /* Otherwise, report an error. */ $errTitle = sprintf( _("Error opening %s"), $default_pref ); - if (!file_exists($default_pref)) { + if (!is_readable($default_pref)) { $errString = $errTitle . "
\n" . - _("Default preference file not found!") . "
\n" . + _("Default preference file not found or not readable!") . "
\n" . _("Please contact your system administrator and report this error.") . "
\n"; include_once(SM_PATH . 'functions/display_messages.php' ); logout_error( $errString, $errTitle ); -- 2.25.1