CMS MADE SIMPLE FORGE

Members Area

 

[#12579] PHP8 action.do_addgroup fixes

avatar
Created By: Chris Taylor (chrisbt)
Date Submitted: Wed Nov 23 12:03:37 -0500 2022

Assigned To:
Version: None
CMSMS Version: None
Severity: None
Resolution: None
State: Open
Summary:
PHP8 action.do_addgroup fixes
Detailed Description:
When adding a group on a new install on PHP8 got:
PHP Fatal error:  Uncaught TypeError: count(): Argument #1 ($value) must be of
type Countable|array, null given in
/var/www/html/module-dev-review-manager/modules/MAMS/action.do_addgroup.php:80
   and...
[23-Nov-2022 16:57:48 Europe/London] PHP Warning:  Undefined array key
"input_name" in
/var/www/html/module-dev-review-manager/modules/MAMS/action.do_addgroup.php on
line 136

I just added the following before both  for loops:
if ( !empty($params['input_name']) ) {

Not 100% on the logic of this, but it worked so I could test MAMS


History