From b848764299db83c5cfb974807c106ec35c65888b Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sun, 18 Sep 2011 09:07:12 +0200 Subject: [PATCH] Remove search by expression in PDO --- adminer/include/pdo.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/adminer/include/pdo.inc.php b/adminer/include/pdo.inc.php index 9c342e04..e5b9df34 100644 --- a/adminer/include/pdo.inc.php +++ b/adminer/include/pdo.inc.php @@ -5,6 +5,11 @@ if (extension_loaded('pdo')) { var $_result, $server_info, $affected_rows, $error; function __construct() { + global $adminer; + $pos = array_search("", $adminer->operators); + if ($pos !== false) { + unset($adminer->operators[$pos]); + } } function dsn($dsn, $username, $password, $exception_handler = 'auth_error') {