diff options
author | Andrew Dolgov <[email protected]> | 2021-02-11 16:39:11 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-11 16:39:11 +0300 |
commit | 621e063baf9a49cfcf69c78c032eb6b46435b1c9 (patch) | |
tree | e2be32fce3f904103afac0f7e91f92b484fbafd1 | |
parent | 0757b0ec8b95b4a9f91b2dd40ec774af9a3d4a0b (diff) |
fix warning
-rw-r--r-- | init.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |