﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking
1488	Bug in Payone-Config	noRiddle	somebody	"In ''/admin/payone_config.php'' wird eine Spalte zu einer DB-Tabelle hinzugefügt mittels folgender Abfrage:
{{{
// check new column
$check_query = xtc_db_query(""SELECT *
                               FROM payone_transactions
                              LIMIT 1"");
$check = xtc_db_fetch_array($check_query);
if (!isset($check['type'])) {
  xtc_db_query(""ALTER TABLE payone_transactions ADD type varchar(64) NOT NULL"");
}
}}}

Das halte ich für äußerst heikel. Die Abfrage sollte per
{{{
SHOW COLUMNS FROM payone_transactions
}}}

erfolgen.
Was nämlich, wenn es noch keine Zeile in der Tabelle gibt, sie also leer ist ?

Dazu hier in [https://www.modified-shop.org/forum/index.php?topic=39261.msg354439#msg354439 diesem Thread] ein User mit einer Fehlermeldung diesbezüglich.

Gruß,
noRiddle"	Bug/Fehler	closed	normal	modified-shop-2.0.5.0	Admin	2.0.4.0	fixed				
