Skip to content

Commit

Permalink
file_exists() -> is_readable()
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Mar 31, 2014
1 parent 8fbf400 commit 31f919f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion imp/bin/imp-bounce-spam
Expand Up @@ -45,7 +45,7 @@ $bounce_template = IMP_BASE . '/config/bounce.txt';
/** End Configuration **/

/* If there's no bounce template file then abort */
if (!file_exists($bounce_template)) {
if (!is_readable($bounce_template)) {
$cli->fatal('Bounce template does not exist.');
}

Expand Down
2 changes: 1 addition & 1 deletion imp/lib/Mbox/Import.php
Expand Up @@ -74,7 +74,7 @@ public function import($mbox, $form_name)
*/
protected function _import($fname, $type)
{
if (!file_exists($fname)) {
if (!is_readable($fname)) {
return false;
}

Expand Down

0 comments on commit 31f919f

Please sign in to comment.