Browse Source

Zusätzliche Überprüfung auf sinnvolle Daten

gc-server3 10 months ago
parent
commit
ecdd544215
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/db.php

+ 1 - 1
app/db.php

@@ -17,7 +17,7 @@ switch ($_REQUEST['a']) {
 		$datum = $_REQUEST['datum'];
 		$start = ($_REQUEST['start'] == "null") ? '00:00:00' : $_REQUEST['start'];
 
-		if (count($data) > 0) {
+		if (isset($data) && count($data) > 0) {
 
 		} else {
 			$q = $dbh->query("SELECT sm.*, k.whitelist FROM status_meldung sm