diff --git a/adminer/include/errors.inc.php b/adminer/include/errors.inc.php index b9a88389..ff7fa313 100644 --- a/adminer/include/errors.inc.php +++ b/adminer/include/errors.inc.php @@ -5,5 +5,5 @@ error_reporting(24575); // all but E_DEPRECATED (overriding mysqli methods witho set_error_handler(function ($errno, $errstr) { // "Undefined array key" mutes $_GET["q"] if there's no ?q= // "Undefined offset" and "Undefined index" are older messages for the same thing - return !!preg_match('~^(Undefined (array key|offset|index))~', $errstr); + return !!preg_match('~^Undefined (array key|offset|index)~', $errstr); }, E_WARNING | E_NOTICE); // warning since PHP 8.0