Geeklog-Core / geeklog

Geeklog - The Secure CMS.
https://www.geeklog.net
25 stars 19 forks source link

Fixed a warning when stories goes to zero #1096

Closed hirorongl closed 2 years ago

hirorongl commented 2 years ago

Fixed a warning when stories goes to zero

E_WARNING(2) - Trying to access array offset on value of type bool @ /var/www/public_html/lib-common.php line 706

fix: line 706 if (isset($_VARS['last_article_publish']) && isset($A['date']) && ($_VARS['last_article_publish'] != $A['date'])) {

eSilverStrike commented 2 years ago

Can you quote us the line it is replacing just to make it easier to find and replace since the current development version line numbers will be different than the version you are using.

hirorongl commented 2 years ago

It is line 706 of lib-common.php of the contents pulled by github on 2021/09/15. Please see the image

20210916144822

eSilverStrike commented 2 years ago

Thanks