Opened 6 years ago

Last modified 6 years ago

#1683 closed Bug/Fehler

Code-Fragment in SQL Query — at Initial Version

Reported by: Stefan May <stefan@…> Owned by: somebody
Priority: normal Milestone: modified-shop-2.0.5.0
Component: Shop Version: 2.0.4.2
Keywords: Cc:
Blocked By: Blocking:

Description

In Datei shoproot/includes/modules/set_account_type.php findet sich ab Zeile 14:

$account_type_query = xtc_db_query("-- /includes/application_top.php

SELECT account_type,

customers_default_address_id

FROM ".TABLE_CUSTOMERS."

WHERE customers_id = '".(int) $_SESSIONcustomer_id."'");

sowie ab Zeile 23:

$zone_query = xtc_db_query("-- /includes/application_top.php

SELECT entry_country_id

FROM ".TABLE_ADDRESS_BOOK."

WHERE customers_id='".(int) $_SESSIONcustomer_id."'

AND address_book_id='".$account_typecustomers_default_address_id."'");

Der String "-- /includes/application_top.php" sollte aus den SQL-Befehlen entfernt werden und jeder Befehl mit dem Schlüsselwort "SELECT" in der jeweils nächsten Zeile beginnen.

In Shopversion 2.0.4.2 ergeben beide SQL-Befehle durch den Fehler immer ein leeres Ergebnis, aber keine Fehlermeldung.

Change History (0)

Note: See TracTickets for help on using tickets.