Skip to content

Commit

Permalink
Fix invalid argument for foreach warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ecartz committed Dec 22, 2020
1 parent 54ef259 commit acd0a80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/actions/add_product.php
Expand Up @@ -17,7 +17,7 @@ public static function execute() {

if (isset($_POST['products_id'])) {
$pid = (int)$_POST['products_id'];
$attributes = $_POST['id'] ?? '';
$attributes = $_POST['id'] ?? null;

$qty = (!empty($_POST['qty'])) ? (int)$_POST['qty'] : 1;

Expand Down

0 comments on commit acd0a80

Please sign in to comment.