mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Static Analysis
This commit is contained in:
parent
1520bf93ee
commit
6b0a25453d
@ -495,7 +495,7 @@ class PurchaseOrderController extends BaseController
|
||||
|
||||
$purchase_orders = PurchaseOrder::withTrashed()->whereIn('id', $this->transformKeys($ids))->company()->get();
|
||||
|
||||
if (! $purchase_orders) {
|
||||
if ($purchase_orders->count() == 0) {
|
||||
return response()->json(['message' => 'No Purchase Orders Found']);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user