summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-04-27 19:44:12 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-04-27 19:44:12 +0200
commitf6b9128dfa5aa5fc9654ed74a1a3b78e69263bbf (patch)
tree023365e55a099cb6e58b8cc0c5a9f35468fbf61f /application
parente9cc4cfd4ffd96448fff2578fbad5102aae8b656 (diff)
\l\Image->best_driver: Always ignore < 0 priority
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application')
-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;
}