From 8324e24776c820657d062f1d8cb29aec23300943 Mon Sep 17 00:00:00 2001 From: Jimako Date: Wed, 7 Jun 2023 07:32:32 +0200 Subject: [PATCH] PM class - fix PHP 8 #4998 fix for #4998 Fatal error: Uncaught TypeError: count() Pull request: https://github.com/e107inc/e107/pull/5006 --- e107_plugins/pm/pm_class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/e107_plugins/pm/pm_class.php b/e107_plugins/pm/pm_class.php index 0feb3340b..7a1a14603 100755 --- a/e107_plugins/pm/pm_class.php +++ b/e107_plugins/pm/pm_class.php @@ -120,6 +120,7 @@ class private_message $ret = ''; $addOutbox = TRUE; $timestamp = time(); + $a_list = array(); $maxSendNow = varset($this->pmPrefs['pm_max_send'],100); // Maximum number of PMs to send without queueing them if (isset($vars['pm_from']))