From 7f4f9f4e8230683a5a2cd8656914745881308728 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 7 Feb 2009 15:00:03 +0300 Subject: offline: try to download status of articles which were marked as read in online while offline client was disconnected --- modules/backend-rpc.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'modules') diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php index 9996f7f41..ff723646c 100644 --- a/modules/backend-rpc.php +++ b/modules/backend-rpc.php @@ -564,6 +564,19 @@ } } + + /* Maybe we need to further update local DB for this client */ + + $query = "SELECT ref_id,unread FROM ttrss_user_entries + WHERE last_read >= '$last_online' AND + owner_uid = ".$_SESSION["uid"]; + + $result = db_query($link, $query); + + while ($line = db_fetch_assoc($result)) { + print ""; + } + } } -- cgit v1.2.3