]> git.mxchange.org Git - friendica.git/commitdiff
empty uid on friend check
authorFriendika <info@friendika.com>
Wed, 27 Apr 2011 22:59:18 +0000 (15:59 -0700)
committerFriendika <info@friendika.com>
Wed, 27 Apr 2011 22:59:18 +0000 (15:59 -0700)
addon/facebook/facebook.php
boot.php

index 8c81ff3a7fedc09024a7301a17e0614f8442615b..c2ccfa1316009808fd60d4463022b40e74f0659c 100644 (file)
@@ -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']);
                }
index 2b163d2cafeb7faed3c050f5aefac18179ca84ef..b0412e05148f3d963c95a25af525de118afafaf2 100644 (file)
--- 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      );