From 2d181a55d1c1c37fa3d36deae4127db2b4e433ed Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Sun, 23 Feb 2025 07:34:23 +0000
Subject: [PATCH] Use the correct count() function

---
 ai-simplesitestats.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ai-simplesitestats.php b/ai-simplesitestats.php
index b705d37..7445067 100644
--- a/ai-simplesitestats.php
+++ b/ai-simplesitestats.php
@@ -82,7 +82,7 @@ class StatisticsPage {
         echo '<div>';
         echo '<label for="'. $name . '_field">' . $label . '</label>';
         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] . '"';
             if ($choices[$i] === $value) {
                 echo ' selected';
-- 
GitLab