@@ -313,7 +313,7 @@ discard block |
||
| 313 | 313 | 'not_guest' => 0, |
| 314 | 314 | ) |
| 315 | 315 | )->fetch_callback( |
| 316 | - function ($row) use (&$pollOptions) { |
|
| 316 | + function($row) use (&$pollOptions) { |
|
| 317 | 317 | $row['label'] = censor($row['label']); |
| 318 | 318 | $pollOptions[$row['id_choice']] = $row; |
| 319 | 319 | } |
@@ -344,7 +344,7 @@ discard block |
||
| 344 | 344 | 'id_poll' => $id_poll, |
| 345 | 345 | ) |
| 346 | 346 | )->fetch_callback( |
| 347 | - function ($row) use (&$pollOptions) { |
|
| 347 | + function($row) use (&$pollOptions) { |
|
| 348 | 348 | $row['label'] = censor($row['label']); |
| 349 | 349 | $pollOptions[$row['id_choice']] = $row; |
| 350 | 350 | } |
@@ -727,7 +727,7 @@ discard block |
||
| 727 | 727 | 'id_poll' => $id_poll, |
| 728 | 728 | ) |
| 729 | 729 | )->fetch_callback( |
| 730 | - function ($row) use (&$pollOptions) { |
|
| 730 | + function($row) use (&$pollOptions) { |
|
| 731 | 731 | if (isset($row['id_choice'])) |
| 732 | 732 | { |
| 733 | 733 | $pollOptions[] = $row['id_choice']; |
@@ -795,7 +795,7 @@ discard block |
||
| 795 | 795 | 'id_poll' => $id_poll, |
| 796 | 796 | ) |
| 797 | 797 | )->fetch_callback( |
| 798 | - function ($row) use (&$choices, &$number) { |
|
| 798 | + function($row) use (&$choices, &$number) { |
|
| 799 | 799 | $row['label'] = censor($row['label']); |
| 800 | 800 | $choices[$row['id_choice']] = array( |
| 801 | 801 | 'id' => $row['id_choice'], |
@@ -487,7 +487,7 @@ |
||
| 487 | 487 | return $total; |
| 488 | 488 | } |
| 489 | 489 | |
| 490 | - foreach($context['likes'] as $item) { |
|
| 490 | + foreach ($context['likes'] as $item) { |
|
| 491 | 491 | $total += $item['count']; |
| 492 | 492 | } |
| 493 | 493 | |
@@ -487,7 +487,8 @@ |
||
| 487 | 487 | return $total; |
| 488 | 488 | } |
| 489 | 489 | |
| 490 | - foreach($context['likes'] as $item) { |
|
| 490 | + foreach($context['likes'] as $item) |
|
| 491 | + { |
|
| 491 | 492 | $total += $item['count']; |
| 492 | 493 | } |
| 493 | 494 | |
@@ -2,6 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | // Try to handle it with the upper level index.php. (it should know what to do.) |
| 4 | 4 | if (file_exists(dirname(dirname(__FILE__)) . '/index.php')) |
| 5 | +{ |
|
| 5 | 6 | include (dirname(dirname(__FILE__)) . '/index.php'); |
| 6 | -else |
|
| 7 | - exit; |
|
| 8 | 7 | \ No newline at end of file |
| 8 | +} |
|
| 9 | +else { |
|
| 10 | + exit; |
|
| 11 | +} |
|
@@ -2,6 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | // Try to handle it with the upper level index.php. (it should know what to do.) |
| 4 | 4 | if (file_exists(dirname(dirname(__FILE__)) . '/index.php')) |
| 5 | +{ |
|
| 5 | 6 | include (dirname(dirname(__FILE__)) . '/index.php'); |
| 6 | -else |
|
| 7 | - exit; |
|
| 8 | 7 | \ No newline at end of file |
| 8 | +} |
|
| 9 | +else { |
|
| 10 | + exit; |
|
| 11 | +} |
|