@@ 1304-1309 (lines=6) @@ | ||
1301 | ) |
|
1302 | ); |
|
1303 | $sOptions = array(); |
|
1304 | while ($rowChoice = $smcFunc['db_fetch_assoc']($request)) |
|
1305 | { |
|
1306 | censorText($rowChoice['label']); |
|
1307 | ||
1308 | $sOptions[$rowChoice['id_choice']] = array($rowChoice['label'], $rowChoice['votes']); |
|
1309 | } |
|
1310 | $smcFunc['db_free_result']($request); |
|
1311 | ||
1312 | // Can they view it? |
|
@@ 1475-1481 (lines=7) @@ | ||
1472 | ); |
|
1473 | $sOptions = array(); |
|
1474 | $total_votes = 0; |
|
1475 | while ($rowChoice = $smcFunc['db_fetch_assoc']($request)) |
|
1476 | { |
|
1477 | censorText($rowChoice['label']); |
|
1478 | ||
1479 | $sOptions[$rowChoice['id_choice']] = array($rowChoice['label'], $rowChoice['votes']); |
|
1480 | $total_votes += $rowChoice['votes']; |
|
1481 | } |
|
1482 | $smcFunc['db_free_result']($request); |
|
1483 | ||
1484 | $return = array( |