Next wrong strlen() usage replace with proper empty()

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2018-05-14 22:06:56 +02:00
parent e553995fc7
commit 02d2abd2c0

View file

@ -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'];
}