mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-22 11:50:20 +00:00
modified: public_server.tgz bug fixes
modified: public_server/public_server.php bug fixes
This commit is contained in:
parent
2031a7240c
commit
f78d717cc1
2 changed files with 1 additions and 1 deletions
Binary file not shown.
|
@ -106,7 +106,7 @@ function public_server_cron($a,$b) {
|
|||
$flagposts = get_config('public_server','flagposts');
|
||||
$flagpostsexpire = get_config('public_server','flagpostsexpire');
|
||||
if ($flagposts && $flagpostsexpire) {
|
||||
$r = q("select uid from user where account_expired = 0 and login_date < UTC_TIMESTAMP() - INTERVAL %d DAY and account_expires_on = '0000-00-00 00:00:00' and expire = 0 and 'page-flags' = 0",intval(flagposts));
|
||||
$r = q("select uid from user where account_expired = 0 and login_date < UTC_TIMESTAMP() - INTERVAL %d DAY and account_expires_on = '0000-00-00 00:00:00' and expire = 0 and `page-flags` = 0",intval($flagposts));
|
||||
if(count($r)) {
|
||||
foreach($r as $rr)
|
||||
q("update user set expire = %d where uid = %d limit 1",
|
||||
|
|
Loading…
Reference in a new issue