summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-11-30 11:55:33 +0000
committeralecpl <alec@alec.pl>2009-11-30 11:55:33 +0000
commit6c95809d10fda20d522a6a09b861f20bed43ee8c (patch)
tree424244d52f6335399c29b63f6fcf9955ad73f700 /program/include
parent5261d264defb6b4df29f71fe0170b72365acbbbc (diff)
- don't warn about lack of plugin's config file, it's absolutely optional
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_plugin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_plugin.php b/program/include/rcube_plugin.php
index cb5f8e256..68a5bb317 100644
--- a/program/include/rcube_plugin.php
+++ b/program/include/rcube_plugin.php
@@ -59,7 +59,7 @@ abstract class rcube_plugin
{
$fpath = $this->home.'/'.$fname;
$rcmail = rcmail::get_instance();
- if (!$rcmail->config->load_from_file($fpath, false)) {
+ if (is_file($fpath) && !$rcmail->config->load_from_file($fpath, false)) {
raise_error(array('code' => 527, 'type' => 'php', 'message' => "Failed to load config from $fpath"), true, false);
return false;
}