Skip to content

Commit d741c6e

Browse files
authored
Merge pull request #420 from luyadev/no-filter-apply
No filter apply
2 parents 61a8efe + 42c00e8 commit d741c6e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/helpers/BlockHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public static function imageUpload(string|int|null $value, bool|string $applyFil
122122
return false;
123123
}
124124

125-
if ($applyFilter && is_string($applyFilter)) {
125+
if ($applyFilter && is_string($applyFilter) && ($image->getResolutionHeight() !== 0 && $image->getResolutionWidth() !== 0)) {
126126
$filter = $image->applyFilter($applyFilter);
127127

128128
if ($filter) {

src/models/NavItem.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace luya\cms\models;
44

55
use luya\admin\base\GenericSearchInterface;
6-
76
use luya\admin\helpers\Angular;
87
use luya\admin\models\Lang;
98
use luya\admin\models\User;

0 commit comments

Comments
 (0)