Commit b2e5c7ab authored by Volker Krause's avatar Volker Krause
Browse files

Don't leak data from previous rows if the next one misses a value

parent dc9ed98d
......@@ -45,6 +45,7 @@ class Sample
$scalarStmt = $db->prepare($scalarSql);
$db->execute($scalarStmt);
foreach ($scalarStmt as $scalarRow) {
$rowData = array();
$rowData['id'] = intval($scalarRow['col_id']);
$rowData['timestamp'] = $scalarRow['col_timestamp'];
foreach ($product->schema as $entry) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment