cvs: pearweb /public_html/election info.php

From: Date: Tue, 24 Apr 2007 21:41:44 +0000
Subject: cvs: pearweb /public_html/election info.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-46142@lists.php.net to get a copy of this message
davidc Tue Apr 24 21:41:44 2007 UTC Modified files: /pearweb/public_html/election info.php Log: - Just making sure election is an integer before displaying it. That way we prevent errors. http://cvs.php.net/viewvc.cgi/pearweb/public_html/election/info.php?r1=1.3&r2=1.4&diff_format=u Index: pearweb/public_html/election/info.php diff -u pearweb/public_html/election/info.php:1.3 pearweb/public_html/election/info.php:1.4 --- pearweb/public_html/election/info.php:1.3 Wed Mar 21 21:37:10 2007 +++ pearweb/public_html/election/info.php Tue Apr 24 21:41:44 2007 @@ -110,7 +110,7 @@ require dirname(dirname(dirname(__FILE__))) . '/templates/election-vote.tpl.php'; exit; } -if (!$voter->electionExists($_GET['election'])) { +if (!$voter->electionExists($_GET['election']) && is_int($_GET['election'])) { // display summary $currentelections = $voter->listCurrentElections(); $completedelections = $voter->listCompletedElections();

« previous php.pear.cvs (#46142) next »