Skip to content

Commit

Permalink
Merge pull request #420 from luyadev/no-filter-apply
Browse files Browse the repository at this point in the history
No filter apply
  • Loading branch information
nadar authored Sep 6, 2024
2 parents 61a8efe + 42c00e8 commit d741c6e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/helpers/BlockHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public static function imageUpload(string|int|null $value, bool|string $applyFil
return false;
}

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

if ($filter) {
Expand Down
1 change: 0 additions & 1 deletion src/models/NavItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace luya\cms\models;

use luya\admin\base\GenericSearchInterface;

use luya\admin\helpers\Angular;
use luya\admin\models\Lang;
use luya\admin\models\User;
Expand Down

0 comments on commit d741c6e

Please sign in to comment.