Skip to content

Commit

Permalink
Merge pull request #13891 from TheCartpenter/patch-95
Browse files Browse the repository at this point in the history
Added int cast on config_stock_status_id
  • Loading branch information
danielkerr committed Apr 26, 2024
2 parents 29ecb5d + cb48fb4 commit 2e29bd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload/catalog/controller/product/product.php
Expand Up @@ -269,7 +269,7 @@ public function index(): ?\Opencart\System\Engine\Action {
if ($product_info['quantity'] <= 0) {
$stock_status_id = $product_info['stock_status_id'];
} elseif (!$this->config->get('config_stock_display')) {
$stock_status_id = $this->config->get('config_stock_status_id');
$stock_status_id = (int)$this->config->get('config_stock_status_id');
} else {
$stock_status_id = 0;
}
Expand Down

0 comments on commit 2e29bd8

Please sign in to comment.