]> ruin.nu Git - ndwebbie.git/blobdiff - root/src/stats/galaxy.tt2
Remove a few warnings
[ndwebbie.git] / root / src / stats / galaxy.tt2
index 4e27a6bf46d3abbc2c4201f1f7f51894a334f104..b66f74ed18945b4d9123d282566649d4b1765ccd 100644 (file)
@@ -1,6 +1,10 @@
 [% META title = 'Galaxy stats' %]
+[% IF g %]
 [% PROCESS inc/stats.tt2 %]
 <div class="leftinfo">
 <img class="graph" src="[% c.uri_for('/graphs/galaxystats',g.x,g.y,STICK) %]" alt="stats" height="300" width="500">
 <img class="graph" src="[% c.uri_for('/graphs/galaxyranks',g.x,g.y,STICK) %]" alt="ranks" height="300" width="500">
 </div>
+[% ELSE %]
+<p>No such galaxy</p>
+[% END %]