Skip to content

Commit

Permalink
changed file check from file_exists() to is_readable() to catch permi…
Browse files Browse the repository at this point in the history
…ssions issues
  • Loading branch information
twbell committed Oct 17, 2010
1 parent a30284a commit 7483e4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions import/import.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
$importEngine = new geoimport;
//check files
foreach ($files as $file){
if (!file_exists($file)){
echo "Cannot find file ".$file;
if (!is_readable($file)){
echo "Cannot read file ".$file;
exit;
}
}
Expand Down

0 comments on commit 7483e4a

Please sign in to comment.