Skip to content
Snippets Groups Projects
Commit 2d181a55 authored by ale's avatar ale
Browse files

Use the correct count() function

parent 065b7310
No related branches found
No related tags found
No related merge requests found
...@@ -82,7 +82,7 @@ class StatisticsPage { ...@@ -82,7 +82,7 @@ class StatisticsPage {
echo '<div>'; echo '<div>';
echo '<label for="'. $name . '_field">' . $label . '</label>'; echo '<label for="'. $name . '_field">' . $label . '</label>';
echo '<select name="' . $name . '" id="' . $name . '_field">'; echo '<select name="' . $name . '" id="' . $name . '_field">';
for ($i = 0; $i < len($choices); $i++) { for ($i = 0; $i < count($choices); $i++) {
echo '<option value="' . $choices[$i] . '"'; echo '<option value="' . $choices[$i] . '"';
if ($choices[$i] === $value) { if ($choices[$i] === $value) {
echo ' selected'; echo ' selected';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment