summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.php b/init.php
index d22acb9..a60537f 100644
--- a/init.php
+++ b/init.php
@@ -306,7 +306,7 @@ class Api_Resize_Media extends Plugin {
/** @noinspection PhpUnused */
function hook_article_image($enclosures, $content, $site_url) {
- $width = (int) clean($_REQUEST["resize_width"]);
+ $width = (int) clean($_REQUEST["resize_width"] ?? 0);
$article = $this->process_article(["headline" => ["content" => $content]], $width);