From 770f6ed88c2c6d1c49b1889c019b6a4672cccaac Mon Sep 17 00:00:00 2001 From: Junior Date: Wed, 16 Aug 2023 13:39:14 -0400 Subject: [PATCH] Fix missing self:: reference for --- class_appdb.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class_appdb.php b/class_appdb.php index 358a16d..8057e4c 100644 --- a/class_appdb.php +++ b/class_appdb.php @@ -12,7 +12,7 @@ class AppDB { private static $dbh = null; public static function getLastInsertId() { - if ( is_null($dbh) ) return 0; + if ( is_null(self::$dbh) ) return 0; return self::$dbh->lastInsertId(); }