Skip to content

Commit

Permalink
Fix binary operations priority issues
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Nov 4, 2021
1 parent b559504 commit 3c211ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/CartBox.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public function onRemoveCondition()
public function onProceedToCheckout()
{
try {
if (!is_numeric($id = post('locationId')) || !$location = Location::getById($id) || !$location->location_status)
if (!is_numeric($id = post('locationId')) || !($location = Location::getById($id)) || !$location->location_status)
throw new ApplicationException(lang('igniter.local::default.alert_location_required'));

Location::setCurrent($location);
Expand Down

0 comments on commit 3c211ea

Please sign in to comment.