Commit 7b70559d by 杨昕

Merge branch 'test' into 'master'

code format

See merge request !18
parents 0cfe3a57 d7afa397
Pipeline #10255 passed with stages
in 42 seconds
...@@ -92,8 +92,9 @@ class MediaModel extends Eloquent ...@@ -92,8 +92,9 @@ class MediaModel extends Eloquent
$count = $collection->aggregate($aggregate1)->toArray(); $count = $collection->aggregate($aggregate1)->toArray();
if (isset($count[0])){ if (isset($count[0])){
$count = [0]['count']; $count = $count[0]['count'];
}else{ }else{
$count = 0; $count = 0;
} }
......
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