Catch warning on is_readable() failure (open_basedir restriction)

pull/73/head
Aleksander Machniak 11 years ago
parent efe3b62084
commit c16bd50947

@ -795,7 +795,7 @@ class rcube_mime
}
foreach ($file_paths as $fp) {
if (is_readable($fp)) {
if (@is_readable($fp)) {
$lines = file($fp, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
break;
}

Loading…
Cancel
Save