summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-08-04 17:20:28 +0000
committerZach Copley <zach@controlyourself.ca>2009-08-04 17:20:28 +0000
commit5576917662b47ef27bf7ba3e551411c3d3b5e26c (patch)
tree418435df35211c5ac6e75ecf60adbb355777e04d
parent0685b85d8dd7ab9629b0acbfbd7b4aae20c14103 (diff)
Use empty() for checking whether DB_DataObject returned something
-rwxr-xr-xscripts/twitterstatusfetcher.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/twitterstatusfetcher.php b/scripts/twitterstatusfetcher.php
index d9f035fa6..dd139417c 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();