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