summaryrefslogtreecommitdiff
path: root/html
diff options
context:
space:
mode:
authorAndreas Brachold <vdr07@deltab.de>2007-11-04 17:58:26 +0000
committerAndreas Brachold <vdr07@deltab.de>2007-11-04 17:58:26 +0000
commitd397b77e55d47ae4e0ead0443af4169747a8589b (patch)
treee21ffedb57929001b093ccfc1920d17fb0c35780 /html
parenta44cae4345721d33727fe23c713b6494ce10f80c (diff)
downloadxxv-d397b77e55d47ae4e0ead0443af4169747a8589b.tar.gz
xxv-d397b77e55d47ae4e0ead0443af4169747a8589b.tar.bz2
* html: avoid some warning from template if timer inactive
Diffstat (limited to 'html')
-rw-r--r--html/bloecke/tooltip.tmpl2
-rw-r--r--html/tlist.tmpl6
2 files changed, 4 insertions, 4 deletions
diff --git a/html/bloecke/tooltip.tmpl b/html/bloecke/tooltip.tmpl
index 44788fa..a42a414 100644
--- a/html/bloecke/tooltip.tmpl
+++ b/html/bloecke/tooltip.tmpl
@@ -7,6 +7,6 @@
IF !ttp_offset;ttp_offset = 0;END %?>
<a href="<?% IF link;link;ELSE;"#";END %?>"<?% IF eventid %?>
onmouseover="ttpreq(this, '<?% escape(title) %?>
- <?% IF subtitle.length > 0 %?>~<?% escape(subtitle) %?>
+ <?% IF subtitle && subtitle.length > 0 %?>~<?% escape(subtitle) %?>
<?% END %?>',<?% eventid %?>, <?% ttp_offset %?>);"
<?% END %?> >
diff --git a/html/tlist.tmpl b/html/tlist.tmpl
index de87493..18823b4 100644
--- a/html/tlist.tmpl
+++ b/html/tlist.tmpl
@@ -51,10 +51,10 @@
<?% END %?>
</tr>
<?% FOREACH zeile = data %?>
- <?% aktiv = ( zeile.1 mod 2 );
- vps = zeile.1 mod 8 div 4;
+ <?% aktiv= ( zeile.1 ? zeile.1 mod 2 : 0 );
+ vps= ( zeile.1 ? zeile.1 mod 8 div 4 : 0 );
day = date.format(zeile.9, "%A, %x", locale);
- IF aktiv; rest = rest - zeile.last; END;
+ IF aktiv; rest = rest - zeile.13; END;
%?>
<?% IF oldDay != day %?>
<tr><td colspan='<?% zeile.size + 1 %?>' bgcolor='#DDDDDD'><b><?% day %?></b></td><tr>