aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-27 15:59:18 -0700
committerFriendika <info@friendika.com>2011-04-27 15:59:18 -0700
commitbd65c0c7b2c25f766da7f6a85124e003b2ffd93d (patch)
tree0bfe7d1bf3f4d79cc4f009d6587289b0be7b1212
parentd45ad7bb6b21702260320e3973b3feab11e7124a (diff)
downloadvolse-hubzilla-bd65c0c7b2c25f766da7f6a85124e003b2ffd93d.tar.gz
volse-hubzilla-bd65c0c7b2c25f766da7f6a85124e003b2ffd93d.tar.bz2
volse-hubzilla-bd65c0c7b2c25f766da7f6a85124e003b2ffd93d.zip
empty uid on friend check
-rw-r--r--addon/facebook/facebook.php6
-rw-r--r--boot.php2
2 files changed, 4 insertions, 4 deletions
diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php
index 8c81ff3a7..c2ccfa131 100644
--- a/addon/facebook/facebook.php
+++ b/addon/facebook/facebook.php
@@ -299,12 +299,12 @@ function facebook_cron($a,$b) {
if(count($r)) {
foreach($r as $rr) {
// check for new friends once a day
- $last_friend_check = get_pconfig($uid,'facebook','friend_check');
+ $last_friend_check = get_pconfig($rr['uid'],'facebook','friend_check');
if($last_friend_check)
$next_friend_check = $last_friend_check + 86400;
if($next_friend_check <= time()) {
- fb_get_friends($uid);
- set_pconfig($uid,'facebook','friend_check',time());
+ fb_get_friends($rr['uid']);
+ set_pconfig($rr['uid'],'facebook','friend_check',time());
}
fb_consume_all($rr['uid']);
}
diff --git a/boot.php b/boot.php
index 2b163d2ca..b0412e051 100644
--- a/boot.php
+++ b/boot.php
@@ -2,7 +2,7 @@
set_time_limit(0);
-define ( 'FRIENDIKA_VERSION', '2.1.961' );
+define ( 'FRIENDIKA_VERSION', '2.1.962' );
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
define ( 'DB_UPDATE_VERSION', 1054 );