From 6783c4824b8a3b0afec18e2922c6bd8eec23aa94 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Sun, 16 Mar 2025 10:00:40 -0400 Subject: [PATCH] Fix function call error in PagesVersions module hasPageVersions method --- wire/modules/Pages/PagesVersions/PagesVersions.module.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/modules/Pages/PagesVersions/PagesVersions.module.php b/wire/modules/Pages/PagesVersions/PagesVersions.module.php index 1ecd169c..e8b327cc 100644 --- a/wire/modules/Pages/PagesVersions/PagesVersions.module.php +++ b/wire/modules/Pages/PagesVersions/PagesVersions.module.php @@ -425,7 +425,7 @@ class PagesVersions extends Wire implements Module { * */ public function hasPageVersions(Page $page) { - $database = $this->wire()->database(); + $database = $this->wire()->database; $table = self::versionsTable; $sql = "SELECT COUNT(*) FROM $table WHERE pages_id=:pages_id"; $query = $database->prepare($sql);