- check is_readable in load_from_file()

This commit is contained in:
alecpl
2009-06-20 07:50:12 +00:00
parent 6bd74d8d51
commit e6ee84bcf8

View File

@@ -134,8 +134,8 @@ class rcube_config
*/
public function load_from_file($fpath)
{
if (is_file($fpath)) {
@include($fpath);
if (is_file($fpath) && is_readable($fpath)) {
include($fpath);
if (is_array($rcmail_config)) {
$this->prop = array_merge($this->prop, $rcmail_config);
return true;