From 02d2abd2c045cc6d517eeb54719a3e71c13c3159 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20H=C3=A4der?= Date: Mon, 14 May 2018 22:06:56 +0200 Subject: [PATCH] Next wrong strlen() usage replace with proper empty() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- ljpost/ljpost.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ljpost/ljpost.php b/ljpost/ljpost.php index e9821544..9f604906 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) && strlen($x[0]['timezone'])) { + if (DBM::is_result($x) && !empty($x[0]['timezone'])) { $tz = $x[0]['timezone']; }