fix: use local variable

This commit is contained in:
Victor Westerlund 2025-07-29 09:46:04 +02:00
parent dfd800e263
commit 5c8ed45c56
Signed by: vlw
GPG key ID: D0AD730E1057DFC6

View file

@ -275,7 +275,7 @@
// Get array of SQL WHERE string and filter values
$filter_sql = !is_null($this->filter_sql) ? " WHERE {$this->filter_sql}" : "";
$sql = "DELETE FROM `{$this->table}`{$this->filter_sql}";
$sql = "DELETE FROM `{$this->table}`{$filter_sql}";
return $this->execute_query($sql, self::to_list_array($this->filter_values));
}