fix bug in empty search and add POD note about empty search

This commit is contained in:
Oliver Gorwits
2012-01-18 22:19:34 +00:00
parent d88484f85d
commit a612068143
2 changed files with 11 additions and 2 deletions

View File

@@ -123,7 +123,7 @@ ajax '/ajax/content/search/node' => sub {
->by_ip(param('archived'), $node);
}
}
return unless $set->count;
return unless $set and $set->count;
template 'ajax/search/node_by_ip.tt', {
results => $set,