]> git.mxchange.org Git - friendica.git/commitdiff
Fix last reference of replaced variable $owner_nick in Protocol\Feed::atom()
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 3 Dec 2022 12:27:30 +0000 (07:27 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 3 Dec 2022 15:19:04 +0000 (10:19 -0500)
- Address https://github.com/friendica/friendica/issues/11994#issuecomment-1336146405

src/Protocol/Feed.php

index 3dac91e8494025c7fbd7408116fcc6f0a948827b..29b192331609890b03606ee639b48a943c9808eb 100644 (file)
@@ -943,7 +943,7 @@ class Feed
                if ((time() - strtotime($owner['last-item'])) < 15*60) {
                        $result = DI::cache()->get($cachekey);
                        if (!$nocache && !is_null($result)) {
-                               Logger::info('Cached feed duration', ['seconds' => number_format(microtime(true) - $stamp, 3), 'nick' => $owner_nick, 'filter' => $filter, 'created' => $previous_created]);
+                               Logger::info('Cached feed duration', ['seconds' => number_format(microtime(true) - $stamp, 3), 'nick' => $owner['nickname'], 'filter' => $filter, 'created' => $previous_created]);
                                return $result['feed'];
                        }
                }
@@ -997,7 +997,7 @@ class Feed
                $msg = ['feed' => $feeddata, 'last_update' => $last_update];
                DI::cache()->set($cachekey, $msg, Duration::QUARTER_HOUR);
 
-               Logger::info('Feed duration', ['seconds' => number_format(microtime(true) - $stamp, 3), 'nick' => $owner_nick, 'filter' => $filter, 'created' => $previous_created]);
+               Logger::info('Feed duration', ['seconds' => number_format(microtime(true) - $stamp, 3), 'nick' => $owner['nickname'], 'filter' => $filter, 'created' => $previous_created]);
 
                return $feeddata;
        }