]> git.mxchange.org Git - friendica.git/commitdiff
Fixed TypeError: "Argument 1 passed to Friendica\Core\System::httpExit() must be
authorRoland Häder <roland@mxchange.org>
Sat, 18 Jun 2022 03:41:19 +0000 (05:41 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 18 Jun 2022 03:42:02 +0000 (05:42 +0200)
of the type string, null given, called in /var/www/.../src/Module/DFRN/Poll.php
on line 37"

src/Module/DFRN/Poll.php

index 516f863845c977eb77ab5e1905041d0dad1e8b6a..65f113b9db87f4ab2d24294d23271c91a1401380 100644 (file)
@@ -33,7 +33,6 @@ class Poll extends BaseModule
 {
        protected function rawContent(array $request = [])
        {
-               $last_update = $request['last_update'] ?? '';
-               System::httpExit(OStatus::feed($this->parameters['nickname'], $last_update, 10), Response::TYPE_ATOM);
+               System::httpExit(OStatus::feed($this->parameters['nickname'], $request['last_update'] ?? '', 10) ?? '', Response::TYPE_ATOM);
        }
 }