﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking
1954	PHP Notices in checkout_process.php	info@…	somebody	"Guten Morgen,

nach einem Shopupdate auf Version 2.0.5.1 sind mir folgende PHP-Fehlermeldungen aufgefallen:

{{{
Undefined index: csID in File: /checkout_process.php on Line: 96
Undefined index: company in File: /checkout_process.php on Line: 98
Undefined index: suburb in File: /checkout_process.php on Line: 104
Undefined index: company in File: /checkout_process.php on Line: 118
Undefined index: suburb in File: /checkout_process.php on Line: 120
Undefined index: company in File: /checkout_process.php on Line: 132
Undefined index: suburb in File: /checkout_process.php on Line: 134
}}}
Wie sich herausstellt, können die Spalten ""entry_suburb"", ""entry_company"" und ""entry_state"" in der Tabelle address_book den Wert ""Null"" annehmen, und haben es in meinem Fall auch, da sie in der Vorherigen Shopversion nicht vorhanden waren.
Gleiches gilt auch für die Spalte ""customers_cid"" der Tabelle customers.

Ich schlage vor, die Definition der betroffenen Tabellen zu ändern und auch eine entsprechende Änderung im Installer aufzunehmen, sodass die Einträge nicht Null sondern leer sind.

Alternativ könnten diverse Scripte angepasst werden, beispielsweise die /includes/orders.php Zeile 438

{{{
$default_select =
        ""IFNULL(ab.entry_company,'') as company,
         ab.entry_street_address as street_address,
         IFNULL(ab.entry_suburb,'') as suburb,
         ab.entry_gender as gender,
         ab.entry_postcode as postcode,
         ab.entry_city as city,
         ab.entry_zone_id as zone_id,
         ab.entry_country_id as country_id,
         ab.entry_state as state,
         co.countries_name as title,
         co.countries_id as id,
         co.countries_iso_code_2 as iso_code_2,
         co.countries_iso_code_3 as iso_code_3,
         co.address_format_id as format_id,
         z.zone_name
        "";
}}}

und Zeile 465

{{{
IFNULL(c.customers_cid,'0') as csID
}}}

Die Änderung im Installer wäre aber einfacher.
Wie reagiert der Shop wenn ""customers_cid"" per default ""0"" ist?

Grüße
Andreas"	Bug/Fehler	closed	niedrig	modified-shop-2.0.7.0	Shop	2.0.5.1	fixed				
