Browse Source

Фикс ошибки с испльзование variants как массима когда он объект

master
Alexander Demidov 9 years ago
parent
commit
4dbbd2c671
  1. 2
      Image.php

2
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;
}

Loading…
Cancel
Save