summaryrefslogtreecommitdiff
path: root/init.php
diff options
context:
space:
mode:
Diffstat (limited to 'init.php')
-rw-r--r--init.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.php b/init.php
index 83edefd..14d8350 100644
--- a/init.php
+++ b/init.php
@@ -208,7 +208,7 @@ class Api_Resize_Media extends Plugin {
}
private function rewrite_url_if_needed($url, $width, $force_stamp = false) {
- if (strpos($url, "data:") !== 0) {
+ if (strpos($url, "data:") !== 0 && $width > 0) {
$local_filename = sha1($url) . "-$width";