diff options
author | Andrew Dolgov <[email protected]> | 2005-08-21 17:16:41 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-08-21 17:16:41 +0100 |
commit | ac53063ab9a0a2a13ea40cafd5e6e2b383976578 (patch) | |
tree | 9ce0d3295c76438884f17e9624a209e4ffa64487 /functions.php | |
parent | 40d13c283683b15d7a5d40cfcd158dc84c440085 (diff) |
basic functionality pass 4
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/functions.php b/functions.php index 76917935c..3e5013472 100644 --- a/functions.php +++ b/functions.php @@ -74,13 +74,17 @@ $md5_hash = pg_fetch_result($result, 0, "md5_hash"); if ($md5_hash != $content_md5) - $unread = "false"; + $unread = "true"; + + if ($unread) { + $updated_query_part = "updated = '$entry_timestamp',"; + } $query = "UPDATE ttrss_entries SET title ='$entry_title', link = '$entry_link', - updated = '$entry_timestamp', + $updated_query_part content = '$entry_content', md5_hash = '$content_md5', unread = '$unread' @@ -90,8 +94,8 @@ $result = pg_query($link, $query); - // print "$entry_guid - $entry_timestamp - $entry_title - - // $entry_link - $entry_id<br>"; +// print "$entry_guid - $entry_timestamp - $entry_title - +// $entry_link - $entry_id<br>"; } |