some queries are manually entered, which aren't picked up by 'prefix' class attribute in database class

This commit is contained in:
0xRenegade
2022-09-23 22:59:53 -05:00
parent 8f053474e7
commit 70ec7afc90
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -445,7 +445,7 @@ class Static_Qrcode
$static_id = htmlspecialchars($_GET['static_id'], ENT_QUOTES, 'UTF-8');
$old_filename = htmlspecialchars($_GET['filename'], ENT_QUOTES, 'UTF-8');
$query = $db->query("SELECT format FROM static_qrcodes WHERE id=$static_id"); // get format
$query = $db->query("SELECT format FROM ".DATABASE_PREFIX."static_qrcodes WHERE id=$static_id"); // get format
$format = $query[0]['format'];
$data_to_db = $this->collect();
@@ -487,7 +487,7 @@ class Static_Qrcode
$db = getDbInstance();
$query = $db->query("SELECT format FROM static_qrcodes WHERE id=$static_id"); // get format
$query = $db->query("SELECT format FROM ".DATABASE_PREFIX."static_qrcodes WHERE id=$static_id"); // get format
$format = $query[0]['format'];
$db->where('id', $static_id);