mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-01-27 00:33:34 +00:00
Correct logic when processing directory of files.
This commit is contained in:
parent
45790cfd48
commit
ade450f765
@ -112,10 +112,8 @@ class Tools {
|
||||
}
|
||||
if ($handle = opendir($dir)) {
|
||||
while (false !== ($file = readdir($handle))) {
|
||||
if ($file != "." && $file != ".." && substr($file,-4) != '.ics') {
|
||||
continue;
|
||||
}
|
||||
if(!is_readable($dir.'/'.$file)){
|
||||
if ($file == "." || $file == ".." || substr($file,-4) != '.ics') continue;
|
||||
if ( !is_readable($dir.'/'.$file) ) {
|
||||
dbg_error_log( "importFromDirectory", "ics file '%s' is not readable",$dir .'/'.$file);
|
||||
continue;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user