summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-11 16:39:11 +0300
committerAndrew Dolgov <[email protected]>2021-02-11 16:39:11 +0300
commit621e063baf9a49cfcf69c78c032eb6b46435b1c9 (patch)
treee2be32fce3f904103afac0f7e91f92b484fbafd1
parent0757b0ec8b95b4a9f91b2dd40ec774af9a3d4a0b (diff)
fix warning
-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);