fix: remove superfluous comma, fixing sql syntax error (#77)

Removed an incorrect comma in the logic for updating the wish URL, which previously caused an Internal Server Error due to an SQL syntax error.
This commit is contained in:
Kumi 2023-07-02 12:04:49 +02:00 committed by GitHub
parent a919bcec33
commit b8ca7786ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -318,7 +318,7 @@ switch ($_SERVER['REQUEST_METHOD']) {
*/ */
$database->query( $database->query(
'UPDATE `wishes` 'UPDATE `wishes`
SET `url` = :wish_url_proposed, SET `url` = :wish_url_proposed
WHERE `url` = :wish_url_current', WHERE `url` = :wish_url_current',
array( array(
'wish_url_proposed' => Sanitiser::getURL($_PUT['wish_url_proposed']), 'wish_url_proposed' => Sanitiser::getURL($_PUT['wish_url_proposed']),