From ac3461fc0450ce4a8b75fed2fa6a4d8491aaf656 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Tue, 2 Apr 2024 12:51:36 +0200 Subject: [PATCH] #13244 fixed memory error --- pandora_console/include/functions_reporting.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index c5c7090623..af05902517 100755 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -164,8 +164,12 @@ function shutdown($memory) unset($memory->reserve); $error = error_get_last(); - if (isset($error['type']) === true && $error['type'] === 1) { - echo __('You have no memory for this operation, increase the memory limit.'); + if (isset($error['type'])) { + if ($error['type'] === E_ERROR) { + if (strpos($error['message'], 'Allowed memory size') !== false) { + echo __('You have no memory for this operation, increase the memory limit.'); + } + } } }