From 6d0647530ef2cf1f48da978216fab4a5f02da03e Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Sat, 30 Aug 2025 09:47:45 +0200 Subject: [PATCH] fix: use isset() when checking table property value --- src/MySQL.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MySQL.php b/src/MySQL.php index a7deac6..b30ac5a 100644 --- a/src/MySQL.php +++ b/src/MySQL.php @@ -35,7 +35,7 @@ */ private function throw_if_no_table() { - if (!$this->table) { + if (!isset($this->table)) { throw new Exception("No table name defined"); } }