]> git.joonet.de Git - adminer.git/commitdiff
Remove unnecessary braces
authorJakub Vrana <jakub@vrana.cz>
Sat, 29 Mar 2025 22:20:05 +0000 (23:20 +0100)
committerJakub Vrana <jakub@vrana.cz>
Mon, 31 Mar 2025 08:09:29 +0000 (10:09 +0200)
adminer/include/errors.inc.php

index b9a8838951d3c378c9da21c548e3a1798cc252f1..ff7fa313ef67c8665405c27c9e0ddc3f6e0ef661 100644 (file)
@@ -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