git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 8f93d04d authored by Matt Lee's avatar Matt Lee

don't do a search on an empty term

parent 7bc5670f
Pipeline #41 skipped
......@@ -980,6 +980,9 @@ class Server {
*/
static function search($search_term, $search_type, $limit = 40, $streamable = false) {
global $adodb;
if $search_term {
switch ($search_type) {
case 'artist':
$table = 'Artist';
......@@ -1051,6 +1054,8 @@ class Server {
$result[] = $row;
}
}
return $result;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment