Commit e5553027 authored by Nemo Ma's avatar Nemo Ma

Update elementmix.calc.php

Fix a bug for the previous bugfix under PHP8
parent 673e8653
...@@ -577,7 +577,12 @@ ...@@ -577,7 +577,12 @@
} }
//18th fix: kudos to 低维生物 //18th fix: kudos to 低维生物
$delsub = $minfo['stuff']; $delsub = $minfo['stuff'];
$count_delsub = count($mnifo['stuff']); //$count_delsub = count($mnifo['stuff']);
$count_delsub = 0;
if(!empty($mnifo['stuff']))
{
$count_delsub = $mnifo['stuff'];
}
for ($i = 0; $i < count($subtags); $i++){ for ($i = 0; $i < count($subtags); $i++){
if (in_array($subtags[$i], $minfo['stuff'])){ if (in_array($subtags[$i], $minfo['stuff'])){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment