Geeklog-Core / geeklog

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

Preview or submit article with denied read/write permission, E_WARNING error is raised. (PHP8) #1159

Open sigterm015 opened 1 month ago

sigterm015 commented 1 month ago

Geeklog2.2.2 on PHP8.1

On article edit page, disable some checkbox of permissions and preview or submit. It raises E_WARNING error. E_WARNING(2) - Undefined array key "perm_anon" @ /var/www/geeklog/system/classes/article.class.php line 2315

Perhaps changing of error level for accessing an array with undefined key in PHP8 affects this issue. https://github.com/Geeklog-Core/geeklog/blob/ef48c658c253a8d0ed28209ba8d5471489dcb472/system/classes/article.class.php#L2301-L2323