]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Use empty() for checking whether DB_DataObject returned something
authorZach Copley <zach@controlyourself.ca>
Tue, 4 Aug 2009 17:20:28 +0000 (17:20 +0000)
committerZach Copley <zach@controlyourself.ca>
Tue, 4 Aug 2009 17:20:28 +0000 (17:20 +0000)
scripts/twitterstatusfetcher.php

index d9f035fa61a9742010b94f3c457d374915a02460..dd139417cfacc1e4643f13eeeb497ad3f1e73cad 100755 (executable)
@@ -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();