diff --git a/ag/include/pollfunctions.inc.php b/ag/include/pollfunctions.inc.php index 3d4a504..dc0e936 100644 --- a/ag/include/pollfunctions.inc.php +++ b/ag/include/pollfunctions.inc.php @@ -77,7 +77,7 @@ function getCommentCount($pollid){ return $temp[anzahl]; } -function getResult($pollid){ +function getPollResult($pollid){ $returnArray = array(); $sql = 'SELECT text, pv.polloptionid, count(pv.polloptionid) as anzahl FROM poll_votes as pv inner join poll_options as po on pv.polloptionid = po.polloptionid and pv.pollid = po.pollid where pv.pollid = '.$pollid.' group by polloptionid'; $qry = mysql_query($sql); diff --git a/ag/umfrage.php b/ag/umfrage.php index 2512795..1eaf70c 100644 --- a/ag/umfrage.php +++ b/ag/umfrage.php @@ -72,7 +72,7 @@ function stelleUmfrageDar($userid, $pollid,$pageNumber){ if($choice || !$open){ // Ja, dann einfach nur Ergebnis anzeigen - $ergebnisse = getResult($pollid); + $ergebnisse = getPollResult($pollid); ?>