From: Zach Copley Date: Tue, 4 Aug 2009 17:20:28 +0000 (+0000) Subject: Use empty() for checking whether DB_DataObject returned something X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5576917662b47ef27bf7ba3e551411c3d3b5e26c;p=quix0rs-gnu-social.git Use empty() for checking whether DB_DataObject returned something --- diff --git a/scripts/twitterstatusfetcher.php b/scripts/twitterstatusfetcher.php index d9f035fa61..dd139417cf 100755 --- a/scripts/twitterstatusfetcher.php +++ b/scripts/twitterstatusfetcher.php @@ -356,7 +356,7 @@ class TwitterStatusFetcher extends Daemon $profileurl = 'http://twitter.com/' . $user->screen_name; $profile = Profile::staticGet('profileurl', $profileurl); - if ($profile) { + if (!empty($profile) { if (defined('SCRIPT_DEBUG')) { common_debug("Profile for $profile->nickname found."); } @@ -394,7 +394,7 @@ class TwitterStatusFetcher extends Daemon // check for remote profile $remote_pro = Remote_profile::staticGet('uri', $profileurl); - if (!$remote_pro) { + if (empty($remote_pro)) { $remote_pro = new Remote_profile();