From bf06fefc0a847fde6148bfbe242332fd699c1341 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 6 Dec 2016 14:15:52 +0200 Subject: [PATCH] remarketing --- console/controllers/FeedController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console/controllers/FeedController.php b/console/controllers/FeedController.php index d919221..75ee5ed 100644 --- a/console/controllers/FeedController.php +++ b/console/controllers/FeedController.php @@ -39,7 +39,7 @@ class FeedController extends Controller if ($this->checkId($product->product_id)) { print $this->count++ . "\r\n"; $url = Url::to(['catalog/product', 'product' => $product]); - $image = isset($product) ? $product->image->getImageUrl() : '/storage/no_photo.png'; + $image = isset($product->image) ? $product->image->getImageUrl() : '/storage/no_photo.png'; $content[] = [ $product->variant->product_variant_id, $product->category->category_id, -- libgit2 0.21.4