From f7de89aa98addeda4a6ce7606ac0f30536963c79 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sun, 17 Sep 2023 15:57:45 +0700 Subject: [PATCH] Minor improvements (#246) * Minor improvements * Update CHANGELOG.md --- CHANGELOG.md | 2 +- admin/admin_attachments.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 40380979..3244d79f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ **Merged pull requests:** - Release v2.1.5-2023.09 🎉 -- Minor improvements [\#245](https://github.com/torrentpier/torrentpier-lts/pull/245) ([belomaxorka](https://github.com/belomaxorka)) +- Minor improvements [\#245](https://github.com/torrentpier/torrentpier-lts/pull/245), [\#246](https://github.com/torrentpier/torrentpier-lts/pull/246) ([belomaxorka](https://github.com/belomaxorka)) ## [v2.1.5-2023.08-HotFix](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.08-HotFix) (2023-09-17) [Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.08...v2.1.5-2023.08-HotFix) diff --git a/admin/admin_attachments.php b/admin/admin_attachments.php index 7b8feb10..f7ede54f 100644 --- a/admin/admin_attachments.php +++ b/admin/admin_attachments.php @@ -187,14 +187,14 @@ if ($search_imagick) { $path = 'c:/imagemagick/convert.exe'; - if ( !@file_exists(@amod_realpath($path))) + if ( @file_exists(@amod_realpath($path))) { $imagick = $path; } } } - if ( !@file_exists(@amod_realpath(trim($imagick)))) + if ( @file_exists(@amod_realpath(trim($imagick)))) { $new_attach['img_imagick'] = trim($imagick); } @@ -716,4 +716,4 @@ if ($error) $template->assign_vars(array('ERROR_MESSAGE' => $error_msg)); } -print_page('admin_attachments.tpl', 'admin'); \ No newline at end of file +print_page('admin_attachments.tpl', 'admin');