|
@@ -90,11 +90,12 @@ switch ($_REQUEST['a']) {
|
|
|
break;
|
|
|
|
|
|
case 'changelog':
|
|
|
- $kunde = "Entenmann";
|
|
|
+ $kunde = "Jansen";
|
|
|
$q = $dbh->query("SELECT * FROM kunden_gcstarter WHERE kunde = '{$kunde}' ORDER BY datum DESC LIMIT 1");
|
|
|
$result = $q->fetch(PDO::FETCH_ASSOC);
|
|
|
- $r = json_decode($result['gcstarter'], true);
|
|
|
- $byDate = $r['Kontenzuordnung GAPS.csv.log'];
|
|
|
+ $r = json_decode(utf8_decode($result['gcstarter']), true);
|
|
|
+ //echo json_last_error();
|
|
|
+ $byDate = (isset($r['Kontenzuordnung GAPS.csv.log'])) ? $r['Kontenzuordnung GAPS.csv.log'] : array();
|
|
|
|
|
|
$states = array("neu", "akt", "entf");
|
|
|
|
|
@@ -181,7 +182,7 @@ switch ($_REQUEST['a']) {
|
|
|
|
|
|
if (count($data) > 0) {
|
|
|
if ($id == '') {
|
|
|
- $now = date('Y-m-d H:m:i');
|
|
|
+ $now = date('Y-m-d H:i:s');
|
|
|
$q = $dbh->exec("INSERT INTO status_kommentar (kunde, datum, start, benutzer, fehler, status, kommentar, cdate)
|
|
|
VALUES ('{$data['kunde']}','{$data['datum']}','{$data['start']}','{$data['benutzer']}','{$data['fehler']}','{$data['status']}','{$data['kommentar']}','{$now}')");
|
|
|
$id = $dbh->lastInsertId();
|
|
@@ -255,5 +256,5 @@ switch ($_REQUEST['a']) {
|
|
|
$result = $events;
|
|
|
}
|
|
|
}
|
|
|
-echo json_encode($result);
|
|
|
+echo json_encode($result);
|
|
|
// echo json_last_error();
|