geodesicsolutions-community / geocore-community

GeoCore Community, open source classifieds and auctions software
MIT License
9 stars 6 forks source link

admin count / each class errors #230

Open iBeleave opened 8 months ago

iBeleave commented 8 months ago

1 TypeError: count(): Argument must be of type Countable|array, null given \admin\admin_price_plan_management_class.php: ~2358

remove:

if (count($info['main_category_ban']) > 0) {

replace with:

if (is_countable($info['main_category_ban']) && is_array($info['main_category_ban'])) {

2 Call to undefined function each() (removed in php 8) \admin\admin_messaging_class.php: lines 35,363, 598 remove:

while (list($key,$value) = each($list_info)) { 

replace with:

foreach($list_info as $key => $value) {