Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Geeklog-Core/geeklog
Browse files Browse the repository at this point in the history
  • Loading branch information
eSilverStrike committed Oct 26, 2019
2 parents 1e11ec8 + 50f6021 commit 950bae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public_html/lib-common.php
Expand Up @@ -604,7 +604,7 @@
. "ORDER BY date DESC LIMIT 1";
$result = DB_query($sql);
$A = DB_fetchArray($result);
if ($_VARS['last_article_publish'] != $A['date']) {
if (isset($_VARS['last_article_publish']) && ($_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 950bae6

Please sign in to comment.