diff --git a/app/Http/Controllers/CountryCompareController.php b/app/Http/Controllers/CountryCompareController.php index 7790cf1..850a756 100644 --- a/app/Http/Controllers/CountryCompareController.php +++ b/app/Http/Controllers/CountryCompareController.php @@ -257,7 +257,7 @@ class CountryCompareController extends Controller $c = ltrim($code, "0"); $json_values = array(); - try { + // try { $price = $xpath->query('//*/div[(@class="itemPriceBox")]//p[@class="itemNormalPrice revamp_price price"]/span/span')[0]->nodeValue; if (is_null($price) || empty($price)) { @@ -272,9 +272,9 @@ class CountryCompareController extends Controller $url_product = null; } - } catch (\Exception $e) { - return []; - } + //} catch (\Exception $e) { + // return []; + //} $price = floatval(trim(str_replace(' ', '', str_replace(',', '.', str_replace('.', '', str_replace(array('€'), '', $price)))))); $json_values = array(