diff --git a/uVote/api/votes/votes.php b/uVote/api/votes/votes.php index 9009469..1458e0c 100644 --- a/uVote/api/votes/votes.php +++ b/uVote/api/votes/votes.php @@ -6,17 +6,10 @@ class votes { $res = $con->prepare( 'selVoteByGrp', 'SELECT * FROM `uvote_votes` WHERE `group` = ?;', array($groupid)); - $result = array(); - - //$r = array(); - while($r = $res->next()){ - //print_r($r); - //$result[] = array('title' => $r['title'],'text' => $r['text']); - $result[] = $r; - //print_r($result); - //echo "

"; - } - //print_r($result); + $result = array(); + while($r = $res->next()){ + $result[] = $r;} + return $result; } }