mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-25 02:34:17 +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)) {
|
if ($handle = opendir($dir)) {
|
||||||
while (false !== ($file = readdir($handle))) {
|
while (false !== ($file = readdir($handle))) {
|
||||||
if ($file != "." && $file != ".." && substr($file,-4) != '.ics') {
|
if ($file == "." || $file == ".." || substr($file,-4) != '.ics') continue;
|
||||||
continue;
|
if ( !is_readable($dir.'/'.$file) ) {
|
||||||
}
|
|
||||||
if(!is_readable($dir.'/'.$file)){
|
|
||||||
dbg_error_log( "importFromDirectory", "ics file '%s' is not readable",$dir .'/'.$file);
|
dbg_error_log( "importFromDirectory", "ics file '%s' is not readable",$dir .'/'.$file);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user