]> git.joonet.de Git - adminer.git/commitdiff
Delete function moved to get_val
authorJakub Vrana <jakub@vrana.cz>
Fri, 28 Mar 2025 22:00:47 +0000 (23:00 +0100)
committerJakub Vrana <jakub@vrana.cz>
Fri, 28 Mar 2025 22:00:47 +0000 (23:00 +0100)
adminer/drivers/mysql.inc.php

index 726814f0154ead1f9ffec9f345bd06f9583e2224..ea92f131e9b6257596c6c159eb50df3d42ee0c4c 100644 (file)
@@ -48,15 +48,6 @@ if (!defined('Adminer\DRIVER')) {
                                return self::more_results() && parent::next_result(); // triggers E_STRICT on PHP < 7.4 otherwise
                        }
 
-                       function result($query, $field = 0) {
-                               $result = $this->query($query);
-                               if (!is_object($result)) {
-                                       return false;
-                               }
-                               $row = $result->fetch_array();
-                               return ($row ? $row[$field] : false);
-                       }
-
                        function quote(string $string): string {
                                return "'" . $this->escape_string($string) . "'";
                        }