bug fix database prefix in Qrcode class

This commit is contained in:
giandonato.inverso@edempg.it
2024-03-11 15:43:16 +01:00
parent 98ae82a040
commit 5bdcb8e2bf
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -10,10 +10,10 @@ class Qrcode {
*/
public function __construct($type) {
if($type === "static") {
$this->table = DATABASE_PREFIX."static_qrcodes";
$this->table = "static_qrcodes";
$this->redirect_url = "static_qrcodes.php";
} else if($type === "dynamic") {
$this->table = DATABASE_PREFIX."dynamic_qrcodes";
$this->table = "dynamic_qrcodes";
$this->redirect_url = "dynamic_qrcodes.php";
} else {
$this->redirect_url = "index.php";