MyBBStuff / MyAlerts

A simple notification/alert system for MyBB similar to IPB and XenForo's core implementations of user notifications.
http://www.euantor.com/myalerts/
47 stars 33 forks source link

Fix #278: Warnings are emitted under PHP 8 #279

Closed lairdshaw closed 1 year ago

lairdshaw commented 1 year ago

Also includes fixes for a few warnings (and potential warnings) not mentioned in the Community Forums post linked from issue #278.

Resolves #278

euantorano commented 1 year ago

Looks good, thanks. Just a minor suggestion/comment.

euantorano commented 1 year ago

We can do without in that case then, I’m happy to merge this and will do so shortly. On 12 Apr 2023, at 17:55, Laird @.***> wrote: @lairdshaw commented on this pull request.

In inc/plugins/myalerts.php:

@@ -723,9 +728,12 @@ function myalerts_global_start() $lang->load('myalerts'); }

I'd wondered the same thing, and concluded that because the else below, on line 745, already handles that scenario, the redundancy wasn't worth it. Other than redundancy, though, it seems harmless to me, so, if you prefer to add it, I'll happily commit your suggestion. Just let me know.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>