empty uid on friend check
This commit is contained in:
parent
d45ad7bb6b
commit
bd65c0c7b2
2 changed files with 4 additions and 4 deletions
|
@ -299,12 +299,12 @@ function facebook_cron($a,$b) {
|
||||||
if(count($r)) {
|
if(count($r)) {
|
||||||
foreach($r as $rr) {
|
foreach($r as $rr) {
|
||||||
// check for new friends once a day
|
// 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)
|
if($last_friend_check)
|
||||||
$next_friend_check = $last_friend_check + 86400;
|
$next_friend_check = $last_friend_check + 86400;
|
||||||
if($next_friend_check <= time()) {
|
if($next_friend_check <= time()) {
|
||||||
fb_get_friends($uid);
|
fb_get_friends($rr['uid']);
|
||||||
set_pconfig($uid,'facebook','friend_check',time());
|
set_pconfig($rr['uid'],'facebook','friend_check',time());
|
||||||
}
|
}
|
||||||
fb_consume_all($rr['uid']);
|
fb_consume_all($rr['uid']);
|
||||||
}
|
}
|
||||||
|
|
2
boot.php
2
boot.php
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
set_time_limit(0);
|
set_time_limit(0);
|
||||||
|
|
||||||
define ( 'FRIENDIKA_VERSION', '2.1.961' );
|
define ( 'FRIENDIKA_VERSION', '2.1.962' );
|
||||||
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
|
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
|
||||||
define ( 'DB_UPDATE_VERSION', 1054 );
|
define ( 'DB_UPDATE_VERSION', 1054 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue