From 1e1bba12da7ec3bdcf0d815ccb597830c4764f3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20H=C3=A4der?= Date: Mon, 14 May 2018 22:07:58 +0200 Subject: [PATCH] Opps, no DBM::is_result() here ... MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- dwpost/dwpost.php | 2 +- ljpost/ljpost.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dwpost/dwpost.php b/dwpost/dwpost.php index 25d5dfc6..339bd4eb 100644 --- a/dwpost/dwpost.php +++ b/dwpost/dwpost.php @@ -175,7 +175,7 @@ function dwpost_send(App $a, array &$b) { intval($b['uid']) ); - if (DBM::is_result($x) && strlen($x[0]['timezone'])) { + if (!empty($x[0]['timezone'])) { $tz = $x[0]['timezone']; } diff --git a/ljpost/ljpost.php b/ljpost/ljpost.php index 9f604906..998ec592 100644 --- a/ljpost/ljpost.php +++ b/ljpost/ljpost.php @@ -168,7 +168,7 @@ function ljpost_send(App $a, array &$b) { intval($b['uid']) ); - if (DBM::is_result($x) && !empty($x[0]['timezone'])) { + if (!empty($x[0]['timezone'])) { $tz = $x[0]['timezone']; }