mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-19 12:46:03 +00:00
55_GDS.pm: minor improvement
git-svn-id: https://svn.fhem.de/fhem/trunk@7758 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c23d7ae18f
commit
8a589f9fec
@ -1,4 +1,4 @@
|
||||
# $Id$
|
||||
# $Id: 55_GDS.pm 7699 2015-01-24 19:53:30Z betateilchen $
|
||||
####################################################################################################
|
||||
#
|
||||
# 55_GDS.pm
|
||||
@ -1170,9 +1170,10 @@ sub gdsHeadlines($;$) {
|
||||
$sep = (defined($sep)) ? $sep : '|';
|
||||
my $count = ReadingsVal($d,'a_count',0);
|
||||
for (my $i = 0; $i < $count; $i++) {
|
||||
$text .= utf8ToLatin1(ReadingsVal('gds','a_'.$i.'_headline','')).$sep;
|
||||
$text .= $sep if $i;
|
||||
$text .= ReadingsVal('gds','a_'.$i.'_headline','')
|
||||
}
|
||||
return utf8ToLatin1($text);
|
||||
return $text;
|
||||
}
|
||||
|
||||
1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user