Skip to content

Commit

Permalink
Merge pull request #3439 from jeromenadaud/hotfix-stockavailable
Browse files Browse the repository at this point in the history
// Parse error
  • Loading branch information
julienbourdeau committed Jul 16, 2015
2 parents 4241a15 + 21af081 commit a08fe95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions classes/stock/StockAvailable.php
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,7 @@ public static function resetProductFromStockAvailableByShopGroup(ShopGroup $shop
{
if ($shop_group->share_stock) {
$shop_list = Shop::getShops(false, $shop_group->id, true);
}

if (count($shop_list) > 0) {
$id_shops_list = implode(', ', $shop_list);
Expand Down
4 changes: 2 additions & 2 deletions controllers/admin/AdminCustomerThreadsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1060,10 +1060,10 @@ public function syncImap()
$cm = new CustomerMessage();
$cm->id_customer_thread = $ct->id;
$cm->message = $message;

if (!Validate::isCleanHtml($message)) {
$str_errors.= Tools::displayError(sprintf('Invalid Message Content for subject: %1s', $subject));
}
else {
} else {
$cm->add();
}
}
Expand Down

0 comments on commit a08fe95

Please sign in to comment.