mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
98_fheminfo.pm: do not return html data if called from update
git-svn-id: https://svn.fhem.de/fhem/trunk@14497 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4b2b91513e
commit
bb08a481df
@ -41,7 +41,8 @@ sub CommandFheminfo($$) {
|
||||
my @args = split("[ \t]+", $param);
|
||||
$args[0] = defined($args[0]) ? lc($args[0]) : "";
|
||||
my $doSend = ($args[0] eq 'send') ? 1 : 0;
|
||||
|
||||
use Data::Dumper;
|
||||
Debug "cl: ".Dumper $cl;
|
||||
return "Unknown argument $args[0], usage: fheminfo [send]"
|
||||
if($args[0] ne "send" && $args[0] ne "");
|
||||
|
||||
@ -52,6 +53,9 @@ sub CommandFheminfo($$) {
|
||||
|
||||
_fi2_Send() if $args[0] eq 'send';
|
||||
|
||||
# do not return statistics data if called from update
|
||||
return "Statistics data sent to server. See Logfile (level 4) for details." unless defined($cl);
|
||||
|
||||
return _fi2_TelnetTable($doSend) if ($cl && $cl->{TYPE} eq 'telnet');
|
||||
return _fi2_HtmlTable($doSend);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user