|
@@ -108,8 +108,7 @@ |
|
|
block discarded – undo |
|
108
|
108
|
$command = rtrim($command, ','); |
|
109
|
109
|
$command .= " WHERE unit_id = " . $event->getUnitId() . " AND year = $year AND month = $month"; |
|
110
|
110
|
$this->pdo->exec($command); |
|
111
|
|
- } |
|
112
|
|
- else { |
|
|
111
|
+ } else { |
|
113
|
112
|
$this->pdo->exec("INSERT INTO $this->day_table (unit_id, year, month, " . implode(', ', $keys) . ") VALUES (" . $event->getUnitId() . ", $year, $month, " . implode(', ', $values) . ")"); |
|
114
|
113
|
} |
|
115
|
114
|
} |
Please login to merge, or discard this patch.