From 4dbbd2c671c86991e73804373c16f14449be37b8 Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Wed, 23 Dec 2015 14:21:30 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=BE=D1=88=D0=B8?= =?UTF-8?q?=D0=B1=D0=BA=D0=B8=20=D1=81=20=D0=B8=D1=81=D0=BF=D0=BB=D1=8C?= =?UTF-8?q?=D0=B7=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20variants=20=D0=BA?= =?UTF-8?q?=D0=B0=D0=BA=20=D0=BC=D0=B0=D1=81=D1=81=D0=B8=D0=BC=D0=B0=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=B3=D0=B4=D0=B0=20=D0=BE=D0=BD=20=D0=BE=D0=B1?= =?UTF-8?q?=D1=8A=D0=B5=D0=BA=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Image.php b/Image.php index 411531f..0c425c5 100644 --- a/Image.php +++ b/Image.php @@ -84,7 +84,7 @@ abstract class Image extends File */ public function getVariant($size, $force_create = false, $important_create = false) { - if ($force_create && !$important_create && array_key_exists($size, $this->variants) && $this->variants[$size]['size'] === null) { + if ($force_create && !$important_create && is_array($this->variants) && array_key_exists($size, $this->variants) && $this->variants[$size]['size'] === null) { $important_create = true; }