]> git.wh0rd.org - tt-rss.git/blobdiff - backend.php
fix broken article update functionality
[tt-rss.git] / backend.php
index 88fcdc6bc7141dcb89c715e0e4e3b8b82ab15682..730d17935b0e76feb68f2675f0c7a083118e3e98 100644 (file)
 //                             strtotime($line["updated"]), $line["updated"],
 //                             strtotime($line["last_read"]) >= strtotime($line["updated"]));
 
-                       if ($line["last_read"] != "" && $line["updated"] != "" &&
+/*                     if ($line["last_read"] != "" && $line["updated"] != "" &&
                                strtotime($line["last_read_noms"]) < strtotime($line["updated_noms"])) {
 
                                $update_pic = "<img id='FUPDPIC-$id' src=\"images/updated.png\" 
                                $update_pic = "<img id='FUPDPIC-$id' src=\"images/blank_icon.gif\" 
                                        alt=\"Updated\">";
 
+                       } */
+
+                       if ($line["last_read"] == "") {
+                               $update_pic = "<img id='FUPDPIC-$id' src=\"images/updated.png\" 
+                                       alt=\"Updated\">";
+                       } else {
+                               $update_pic = "<img id='FUPDPIC-$id' src=\"images/blank_icon.gif\" 
+                                       alt=\"Updated\">";
                        }
 
                        if ($line["unread"] == "t" || $line["unread"] == "1") {