From e68bf35fa7d05c62f8d3501a21d17ab6bb810a22 Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Wed, 23 Dec 2015 15:02: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=83=D1=81=D1=82=D0=B0=D0=BD=D0=BE?= =?UTF-8?q?=D0=B2=D0=BA=D0=B0=20=D0=BF=D0=BE-=D1=83=D0=BC=D0=BE=D0=BB?= =?UTF-8?q?=D1=87=D0=B0=D0=BD=D0=B8=D1=8E=20$important=5Fcreate=20=3D=20nu?= =?UTF-8?q?ll?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Image.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Image.php b/Image.php index 0c425c5..cbba2d0 100644 --- a/Image.php +++ b/Image.php @@ -82,9 +82,9 @@ abstract class Image extends File * * @return ImageVariant */ - public function getVariant($size, $force_create = false, $important_create = false) + public function getVariant($size, $force_create = false, $important_create = null) { - if ($force_create && !$important_create && 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) && $this->variants[$size]['size'] === null) { $important_create = true; }