fetch(PDO::FETCH_ASSOC)) { $error = $row['errormsg'] ? $row['errormsg'] : ''; $lastSeen = Util::prettyTime($row['dnbd3lastseen']); if ($row['fixedip'] === '') { Message::addError('dnbd3.main-dnbd3-unreachable', true, $error, $lastSeen); continue; } if (!is_null($row['fixedip'])) { $ip = $row['fixedip']; } else { $ip = $row['clientip'] . '/' . $row['hostname']; } Message::addWarning('dnbd3.dnbd3-proxy-unreachable', true, $ip, $error, $lastSeen); } unset($res); }