Quick fix

This commit is contained in:
Dillon Ngo
2024-07-01 15:00:14 +08:00
parent 13f13c7a0e
commit 19c4ee4fda
@@ -147,7 +147,7 @@ class TransactionWithStorageResource extends JsonResource
}
private function getReferenceForGroupPayment($groups){
if(count($groups)){
if (is_array($groups) && count($groups) > 0) {
$firstGroup = $groups[0];
return $firstGroup['reference'];
}