";
my $cell = 1;
- # my $idata = "";
# Bildaten aus Cache abrufen
############################
- my $count;
- $cache = cache($name, "c_init"); # Cache initialisieren
+ my ($count, $tmp, $tmpcdat);
+
+ $cache = cache ($name, "c_init"); # Cache initialisieren
Log3 ($name, 1, "$name - Fall back to internal Cache due to preceding failure.") if(!$cache);
@@ -9289,30 +9323,32 @@ sub composeGallery {
$htmlCode =~ s{_LIMIT_}{$count}xms; # Platzhalter Snapanzahl im Header mit realem Wert ersetzen
my $i = 1;
- for my $key (sort{$a<=>$b}keys %{$data{SSCam}{$name}{SNAPHASH}}) {
+ for my $key (sort {$a<=>$b} keys %{$data{SSCam}{$name}{SNAPHASH}}) {
+ my $cttm = $data{SSCam}{$name}{SNAPHASH}{$key}{createdTm} // '';
+ my $imgd = $data{SSCam}{$name}{SNAPHASH}{$key}{imageData} // '';
+
if ($i > $limit) {
$count = $limit;
last;
}
if (!$ftui) {
- $data{SSCam}{$name}{TMPIDAT} = "onClick=\"FW_okDialog('')\"" if(AttrVal($name, 'snapGalleryBoost', $sgbdef));
+ $tmp = "onClick=\"FW_okDialog('')\"" if(AttrVal($name, 'snapGalleryBoost', $sgbdef));
}
- $data{SSCam}{$name}{TMPIDAT} = '' if(!defined $data{SSCam}{$name}{TMPIDAT});
+ $tmp = '' if(!defined $tmp);
$cell++;
if ($cell == $sgc + 1) {
- $htmlCode .= sprintf("$data{SSCam}{$name}{SNAPHASH}{$key}{createdTm} | " );
+ $htmlCode .= sprintf("$cttm | " );
$htmlCode .= "
";
$htmlCode .= "