giandonatoinverso / PHP-Dynamic-Qr-code

PHP Dynamic Qr code is a script that allows the generation and saving of dynamic and static QR codes
MIT License
268 stars 76 forks source link

SQL Prefix in read.php #101

Closed s1rAleks closed 5 months ago

s1rAleks commented 5 months ago

On my new installation (version 2.2.1) I had an issue with dynamic urls. When using a QR code with a dynamic url, the redirect ended in a mysql error page. Checking the error, I realised that the sql prefix is duplicated. The following change fixed the issue for me.

read.php - error Line 16 - $db->update (DATABASE_PREFIX.'dynamic_qrcodes', $data);

read.php - fix Line 16 - $db->update ("dynamic_qrcodes", $data);

giandonatoinverso commented 5 months ago

Thanks!