From f5d69584ea3ab61e082ed398a42b23e4b1359af6 Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Fri, 25 Dec 2015 06:43:36 +0300 Subject: [PATCH] fix type error --- Image.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Image.php b/Image.php index cbba2d0..33bfd26 100644 --- a/Image.php +++ b/Image.php @@ -84,7 +84,8 @@ abstract class Image extends File */ public function getVariant($size, $force_create = false, $important_create = null) { - if ($force_create && $important_create === null && is_array($this->variants) && array_key_exists($size, $this->variants) && $this->variants[$size]['size'] === null) { + if ($force_create && $important_create === null && is_array($this->variants) && array_key_exists($size, $this->variants) && is_array($this->variants[$size]) + && $this->variants[$size]['size'] === null) { $important_create = true; }