Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion www/applets/poll-system.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@

elseif (isset($poll_arr['poll_id']) && !checkVotedPoll($poll_arr['poll_id'])) {

$poll_arr['poll_type_text'] = ( $poll_arr['poll_type'] == 1 ) ? $FD->text("frontend", "multiple_choise") : $FD->text("frontend", "single_choice");
$poll_arr['poll_type_text'] = ( $poll_arr['poll_type'] == 1 ) ? $FD->text("frontend", "multiple_choice") : $FD->text("frontend", "single_choice");

$index2 = $FD->db()->conn()->query('SELECT * FROM '.$FD->env('DB_PREFIX').'poll_answers WHERE poll_id = '.$poll_arr['poll_id'].' ORDER BY answer_id ASC');
initstr($antworten);
Expand Down
4 changes: 2 additions & 2 deletions www/data/polls.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function get_poll_list_arrows ( $SORT, $GET_SORT, $GET_ORDER ) {
{
$poll_arr['poll_start'] = date_loc ( $FD->config('date') , $poll_arr['poll_start']);
$poll_arr['poll_end'] = date_loc ( $FD->config('date') , $poll_arr['poll_end']);
$poll_arr['poll_type'] = ( $poll_arr['poll_type'] == 1 ) ? $FD->text("frontend", "multiple_choise") : $FD->text("frontend", "single_choice");
$poll_arr['poll_type'] = ( $poll_arr['poll_type'] == 1 ) ? $FD->text("frontend", "multiple_choice") : $FD->text("frontend", "single_choice");
// all votes
$index = $FD->db()->conn()->query ( "
SELECT SUM(`answer_count`) AS 'all_votes'
Expand Down Expand Up @@ -137,7 +137,7 @@ function get_poll_list_arrows ( $SORT, $GET_SORT, $GET_ORDER ) {
$poll_arr['poll_url'] = url('polls', array('id' => $poll_arr['poll_id']));
$poll_arr['poll_start'] = date_loc ( $FD->config('date') , $poll_arr['poll_start'] );
$poll_arr['poll_end'] = date_loc ( $FD->config('date') , $poll_arr['poll_end'] );
$poll_arr['poll_type'] = ( $poll_arr['poll_type'] == 1 ) ? $FD->text("frontend", "multiple_choise") : $FD->text("frontend", "single_choice");
$poll_arr['poll_type'] = ( $poll_arr['poll_type'] == 1 ) ? $FD->text("frontend", "multiple_choice") : $FD->text("frontend", "single_choice");

// all votes
$index2 = $FD->db()->conn()->query ( "
Expand Down