summaryrefslogtreecommitdiffstats
path: root/application/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'application/libraries')
-rw-r--r--application/libraries/Image.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/libraries/Image.php b/application/libraries/Image.php
index 9c624eec1..f18ddea53 100644
--- a/application/libraries/Image.php
+++ b/application/libraries/Image.php
@@ -107,7 +107,7 @@ class Image {
$best_driver = null;
foreach ($drivers as $driver) {
$current = $driver::get_priority($mimetype);
- if ($best == 0 || ($current > $best && $current > 0)) {
+ if ($current > $best && $current > 0) {
$best_driver = $driver;
$best = $current;
}