From ad9dcfe92641da201f257a8c4f7a449824edf7a9 Mon Sep 17 00:00:00 2001 From: Shish <shish@shishnet.org> Date: Thu, 26 Jan 2012 18:03:04 +0000 Subject: [PATCH] make sure s is set --- ext/tag_list/main.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/tag_list/main.php b/ext/tag_list/main.php index 7efb1223..f53b7265 100644 --- a/ext/tag_list/main.php +++ b/ext/tag_list/main.php @@ -47,6 +47,8 @@ class TagList implements Extension { } if(($event instanceof PageRequestEvent) && $event->page_matches("api/internal/tag_list/complete")) { + if(!isset($_GET["s"])) return; + $all = $database->get_all( "SELECT tag FROM tags WHERE tag LIKE :search AND count > 0 LIMIT 10", array("search"=>$_GET["s"]."%"));