From f9c0775d03a11c1ec0a1d7427c47621386fb9787 Mon Sep 17 00:00:00 2001 From: albertlast Date: Fri, 11 Sep 2026 20:54:41 +0200 Subject: [PATCH] Calls db_fetch_row() when counting the smileys list_getNumSmileys() named the callable without invoking it, so list() destructured the function name itself. The count was always null, which leaves the edit-smileys list with no page index, and PHP 8.5 warns "Cannot use string as array" every time the page is built. Co-Authored-By: Claude Opus 5 Signed-off-by: albertlast --- Sources/ManageSmileys.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ManageSmileys.php b/Sources/ManageSmileys.php index 1cb76c8c762..e901f7ac597 100644 --- a/Sources/ManageSmileys.php +++ b/Sources/ManageSmileys.php @@ -1519,7 +1519,7 @@ function list_getNumSmileys() FROM {db_prefix}smileys', array() ); - list($numSmileys) = $smcFunc['db_fetch_row']; + list($numSmileys) = $smcFunc['db_fetch_row']($request); $smcFunc['db_free_result']($request); return $numSmileys;