]> git.joonet.de Git - adminer.git/commitdiff
SQLite: Fix getting result of queries with no rows
authorJakub Vrana <jakub@vrana.cz>
Wed, 19 Feb 2025 14:06:55 +0000 (15:06 +0100)
committerJakub Vrana <jakub@vrana.cz>
Wed, 19 Feb 2025 14:06:55 +0000 (15:06 +0100)
adminer/drivers/sqlite.inc.php

index 81670fc96f4c4ebfe9858daa8d8e6d2a085af633..aa7118e2717d743a27590dc80eedcc6fc6dc6801 100644 (file)
@@ -47,7 +47,7 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) {
                                                return false;
                                        }
                                        $row = $result->_result->fetchArray();
-                                       return $row[$field];
+                                       return $row ? $row[$field] : false;
                                }
                        }