From be324bb390b56c651ba05173a31cea8a410b2599 Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Sat, 10 Oct 2020 18:25:49 +0000 Subject: [PATCH] [CONTROLLER] Fix use of undefined variable --- src/Controller/Network.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Controller/Network.php b/src/Controller/Network.php index 91c5b871c3..0a06da2c31 100644 --- a/src/Controller/Network.php +++ b/src/Controller/Network.php @@ -1,6 +1,7 @@ . + // }}} /** @@ -116,7 +118,7 @@ END; '_template' => 'network/public.html.twig', 'notes' => DB::dql('select n from App\Entity\Note n ' . 'where n.reply_to is not null and n.gsactor_id = :id ' . - 'order by n.created DESC', ['id' => $gsactor_id]), + 'order by n.created DESC', ['id' => $actor_id]), ]; } @@ -128,7 +130,7 @@ END; '_template' => 'network/public.html.twig', 'notes' => DB::dql('select f from App\Entity\Favourite f ' . 'where f.gsactor_id = :id ' . - 'order by f.created DESC', ['id' => $gsactor_id]), + 'order by f.created DESC', ['id' => $actor_id]), ]; } }