Skip to content

Commit

Permalink
Fixed warning when no articles in system when updating feeds
Browse files Browse the repository at this point in the history
For bug report #1096
  • Loading branch information
eSilverStrike committed Sep 16, 2021
1 parent abad896 commit 8981ab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public_html/lib-common.php
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@
. "ORDER BY date DESC LIMIT 1";
$result = DB_query($sql);
$A = DB_fetchArray($result);
if (isset($_VARS['last_article_publish']) && ($_VARS['last_article_publish'] != $A['date'])) {
if (isset($_VARS['last_article_publish']) && isset($A['date']) && ($_VARS['last_article_publish'] != $A['date'])) {
//Set new latest article published
// Below similar to what is run in STORY_updateLastArticlePublished
DB_query("UPDATE {$_TABLES['vars']} SET value='{$A['date']}' WHERE name='last_article_publish'");
Expand Down

0 comments on commit 8981ab7

Please sign in to comment.