Do not query server if there's no actual taglist query, fix fatal error "Memory exhaustion"

This commit is contained in:
Hadi Nategh 2020-12-07 10:58:30 +01:00
parent c158707718
commit c8020e6456

View File

@ -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);
}