Fix potential undefined index notices in UserController by adding isset checks for store data
All checks were successful
Deploy Development / deploy (push) Successful in 2m22s
All checks were successful
Deploy Development / deploy (push) Successful in 2m22s
This commit is contained in:
@@ -34,10 +34,10 @@ class UserController extends Controller
|
||||
|
||||
$post_data = array(
|
||||
'isStoreOwner' => true,
|
||||
'store_order' => $countStoreOrder[0]->count_order,
|
||||
'store_income' => $storeIncome[0]->store_income,
|
||||
'store_product_count' => $countStoreProduct[0]->store_product_count,
|
||||
'store_published_product' => $countStorePublishedProduct[0]->store_published_product
|
||||
'store_order' => isset($countStoreOrder[0]->count_order) ? $countStoreOrder[0]->count_order : 0,
|
||||
'store_income' => isset($storeIncome[0]->store_income) ? $storeIncome[0]->store_income : 0,
|
||||
'store_product_count' => isset($countStoreProduct[0]->store_product_count) ? $countStoreProduct[0]->store_product_count : 0,
|
||||
'store_published_product' => isset($countStorePublishedProduct[0]->store_published_product) ? $countStorePublishedProduct[0]->store_published_product : 0
|
||||
);
|
||||
} else {
|
||||
$post_data = array(
|
||||
|
||||
Reference in New Issue
Block a user