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