Don't count objects if pagination is disabled

This commit is contained in:
bethrezen 2014-07-09 16:26:10 +04:00
parent 4908e3d860
commit 42b4525a15

View File

@ -85,7 +85,9 @@ class ArangoProvider extends yii\data\ActiveDataProvider
}
$result[$item['_key']] = $item;
}
$pagination->totalCount = $cursor->getFullCount();
if (is_object($pagination)) {
$pagination->totalCount = $cursor->getFullCount();
}
return $result;
}