From: Keith Fernie Date: Sat, 19 May 2012 18:44:22 +0000 (+0100) Subject: modified: public_server.tgz bug fixes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f78d717cc178b4cb7573bba467c3e0e29d2d2f88;p=friendica-addons.git modified: public_server.tgz bug fixes modified: public_server/public_server.php bug fixes --- diff --git a/public_server.tgz b/public_server.tgz index c9a67fe3..d970d486 100755 Binary files a/public_server.tgz and b/public_server.tgz differ diff --git a/public_server/public_server.php b/public_server/public_server.php index 9d469829..3711854f 100644 --- a/public_server/public_server.php +++ b/public_server/public_server.php @@ -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",