From 52059661a4f603a107c445c2f4c052c66f3420e4 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Thu, 22 Jul 2021 10:59:19 +0200 Subject: [PATCH] Ignore undefined indexes E_NOTICE --- .../godmode/um_client/lib/UpdateManager/Client.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandora_console/godmode/um_client/lib/UpdateManager/Client.php b/pandora_console/godmode/um_client/lib/UpdateManager/Client.php index d324df1120..a38f1fba44 100644 --- a/pandora_console/godmode/um_client/lib/UpdateManager/Client.php +++ b/pandora_console/godmode/um_client/lib/UpdateManager/Client.php @@ -1433,6 +1433,10 @@ class Client error_reporting(E_ALL ^ E_NOTICE); set_error_handler( function ($errno, $errstr) { + if (preg_match('/Undefined index/', $errstr) > 1) { + return; + } + throw new \Exception($errstr, $errno); } );