Commit 81207539 authored by S.Holzhauer's avatar S.Holzhauer

error fixing

parent cfbd6ae3
......@@ -32,7 +32,7 @@ if ($ID == "IRPS001" ){
AND Status = '0';";
$result = $conn->query($sql);
//loop trough every activity
while ($row = $result->fetch_assoc()){
while ($result && ($row = $result->fetch_assoc())){
$starttime = $row['StartTime'];
$endtime = $row['EndTime'];
$Activity = $row['Activity'];
......
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