mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
tweak for HttpUtils logging and minor fix
git-svn-id: https://svn.fhem.de/fhem/trunk@4858 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8007b71bb5
commit
04a567d8a4
@ -829,7 +829,7 @@ sub Calendar_GetUpdate($) {
|
||||
my $ics;
|
||||
|
||||
if($type eq "url"){
|
||||
$ics= GetFileFromURLQuiet($url) if($type eq "url");
|
||||
$ics= GetFileFromURLQuiet($url,10,undef,0,1) if($type eq "url");
|
||||
} elsif($type eq "file") {
|
||||
if(open(ICSFILE, $url)) {
|
||||
while(<ICSFILE>) {
|
||||
@ -962,7 +962,7 @@ sub Calendar_Get($@) {
|
||||
if(defined($a[3])) {
|
||||
my $keep= $a[3];
|
||||
return "Argument $keep is not a number." unless($keep =~ /\d+/);
|
||||
splice @texts, $keep if($#texts>= 0);
|
||||
splice @texts, $keep if($#texts>= 0 && $#texts >= $keep);
|
||||
}
|
||||
return join("\n", @texts);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user