projects
/
quix0rs-gnu-social.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0685b85
)
Use empty() for checking whether DB_DataObject returned something
author
Zach Copley
<zach@controlyourself.ca>
Tue, 4 Aug 2009 17:20:28 +0000
(17:20 +0000)
committer
Zach Copley
<zach@controlyourself.ca>
Tue, 4 Aug 2009 17:20:28 +0000
(17:20 +0000)
scripts/twitterstatusfetcher.php
patch
|
blob
|
history
diff --git
a/scripts/twitterstatusfetcher.php
b/scripts/twitterstatusfetcher.php
index d9f035fa61a9742010b94f3c457d374915a02460..dd139417cfacc1e4643f13eeeb497ad3f1e73cad 100755
(executable)
--- 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();