]> git.mxchange.org Git - friendica.git/commitdiff
Ops, needs to be a variable:
authorRoland Häder <roland@mxchange.org>
Sat, 18 Jun 2022 07:58:44 +0000 (09:58 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 18 Jun 2022 07:59:19 +0000 (09:59 +0200)
Error: "Cannot pass parameter 2 by reference" at /var/www/.../src/Module/DFRN/Poll.php line 36

src/Module/DFRN/Poll.php

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