summaryrefslogtreecommitdiffstats
path: root/modules-available/dnbd3/hooks/main-warning.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/dnbd3/hooks/main-warning.inc.php')
-rw-r--r--modules-available/dnbd3/hooks/main-warning.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/dnbd3/hooks/main-warning.inc.php b/modules-available/dnbd3/hooks/main-warning.inc.php
index bee0a258..ead0a259 100644
--- a/modules-available/dnbd3/hooks/main-warning.inc.php
+++ b/modules-available/dnbd3/hooks/main-warning.inc.php
@@ -7,7 +7,7 @@ if (Dnbd3::isEnabled() && User::hasPermission('.dnbd3.access-page')) {
WHERE errormsg IS NOT NULL');
foreach ($res as $row) {
- $error = $row['errormsg'] ? $row['errormsg'] : '<unknown error>';
+ $error = $row['errormsg'] ?: '<unknown error>';
$lastSeen = Util::prettyTime($row['dnbd3lastseen']);
if ($row['fixedip'] === '<self>') {
Message::addError('dnbd3.main-dnbd3-unreachable', true, $error, $lastSeen);