mirror of
https://github.com/processwire/processwire.git
synced 2025-08-12 01:34:31 +02:00
Fix function call error in PagesVersions module hasPageVersions method
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user