diff options
Diffstat (limited to 'program/include')
-rw-r--r-- | program/include/rcmail_template.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcmail_template.inc b/program/include/rcmail_template.inc index 6057f2af3..1c40c0e96 100644 --- a/program/include/rcmail_template.inc +++ b/program/include/rcmail_template.inc @@ -453,7 +453,7 @@ class rcmail_template extends rcube_html_page // include a file case 'include': $path = realpath($this->config['skin_path'].$attrib['file']); - if ($fp = @fopen($path, 'r')) + if (filesize($path) && ($fp = @fopen($path, 'r'))) { $incl = fread($fp, filesize($path)); fclose($fp); |