From b41c69fefb4ac8668a85052da7d8c04882aa0fbf Mon Sep 17 00:00:00 2001 From: Gargaj Date: Mon, 1 Jan 2024 00:09:43 +0100 Subject: [PATCH] PHP8 fixes, i must not fear, fear is the mindkiller --- account.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/account.php b/account.php index b11bc66..a794c16 100644 --- a/account.php +++ b/account.php @@ -499,7 +499,8 @@ function LoadFromDB() if ($cats) { - $s = new BM_Query("awardssuggestions_votes"); + $s = new BM_Query(); + $s->AddTable("awardssuggestions_votes"); $s->AddField("awardssuggestions_votes.categoryID"); $s->AddWhere(sprintf("userID = %d and categoryID in (%s)",$currentUser->id,implode(",",$cats))); $s->Attach(array("awardssuggestions_votes"=>"prodID"),array("prods as prod"=>"id"));