fix possible bug in tag-processing part of update_rss_feed

This commit is contained in:
Andrew Dolgov 2005-11-21 08:27:17 +01:00
parent a277007718
commit fe99ab12bb
2 changed files with 29 additions and 27 deletions

View file

@ -1969,7 +1969,8 @@
</table>";
$result = db_query($link, "SELECT
id,login,access_level,last_login
id,login,access_level,
SUBSTRING(last_login,1,16) as last_login
FROM
ttrss_users
ORDER by login");
@ -2090,7 +2091,9 @@
print "<div class='infoBoxContents'>";
$result = db_query($link, "SELECT login,last_login,access_level,
$result = db_query($link, "SELECT login,
SUBSTRING(last_login,1,16) AS last_login,
access_level,
(SELECT COUNT(int_id) FROM ttrss_user_entries
WHERE owner_uid = id) AS stored_articles
FROM ttrss_users

View file

@ -414,9 +414,7 @@
AND feed_id = '$feed' AND ref_id = id
AND owner_uid = '$owner_uid'");
if (!$result || db_num_rows($result) != 1) {
return;
}
if (db_num_rows($result) == 1) {
$entry_id = db_fetch_result($result, 0, "id");
$entry_int_id = db_fetch_result($result, 0, "int_id");
@ -443,6 +441,7 @@
}
}
}
}
db_query($link, "UPDATE ttrss_feeds
SET last_updated = NOW(), last_error = '' WHERE id = '$feed'");