forked from devsam/core
fix: Json::decode에서 빈줄은 array조차 아님
This commit is contained in:
@@ -23,6 +23,9 @@ $online = [];
|
||||
$curonline = getOnlineNum();
|
||||
foreach ($log as $i => $value) {
|
||||
$parse = Json::decode($value);
|
||||
if(is_array($parse) === false){
|
||||
continue;
|
||||
}
|
||||
if(count($parse) < 5){
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user