From c8020e645697aac7b1607370e69d86fe7bf1376c Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 7 Dec 2020 10:58:30 +0100 Subject: [PATCH] Do not query server if there's no actual taglist query, fix fatal error "Memory exhaustion" --- api/src/Etemplate/Widget/Taglist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Etemplate/Widget/Taglist.php b/api/src/Etemplate/Widget/Taglist.php index 19ae736f56..b89a7ab207 100644 --- a/api/src/Etemplate/Widget/Taglist.php +++ b/api/src/Etemplate/Widget/Taglist.php @@ -79,7 +79,7 @@ class Taglist extends Etemplate\Widget $links = Api\Accounts::link_query($query, $options); } } - else + elseif($query) // Only search if there's a query, avoid searching for all { $links = Api\Link::query($app, $query, $options); }