]> ruin.nu Git - ndwebbie.git/blobdiff - root/src/stats/planet.tt2
Remove a few warnings
[ndwebbie.git] / root / src / stats / planet.tt2
index d8d9f665037329c29912c83e800f8b3a01c3aa56..fb0784397d92c39d323b8c7cc9d5e7805319ccf5 100644 (file)
@@ -1,5 +1,9 @@
 [% META title = 'Planet stats' %]
+[% IF p.id %]
 [% PROCESS inc/stats.tt2 %]
+[% ELSE %]
+<p> No such planet</p>
+[% END %]
 
 <div class="leftinfo">
 [% IF planetscan.tick %]
 </div>
 [% END %]
 
+[% IF p.id %]
 <div class="leftinfo">
 <img class="graph" src="[% c.uri_for('/graphs/planetstats',p.id,STICK) %]" alt="stats" height="300" width="500">
 <img class="graph" src="[% c.uri_for('/graphs/planetranks',p.id,STICK) %]" alt="ranks" height="300" width="500">
 </div>
+[% END %]