diff --git a/webapp/models/FragmentPool.php b/webapp/models/FragmentPool.php index 4dcb9464..e499c24a 100644 --- a/webapp/models/FragmentPool.php +++ b/webapp/models/FragmentPool.php @@ -29,7 +29,15 @@ class FragmentPool extends BaseModel { 'alloc_time' => $allocTime, ) ); - return $rows ? $rows : array(); + $items = array(); + if ($rows) { + foreach ($rows as $row) { + if ($row['fragment_num'] > 0) { + array_push($items, $row); + } + } + } + return $items; } }