about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-12-29 12:49:55 +0000
committerEric Wong <e@80x24.org>2019-12-29 12:50:13 +0000
commit0a65fd278cb5b4e308fc2535753a3f1a5e78cbf4 (patch)
tree67bdf27bda9a3555027a0c5ae03857463c3e7156 /lib
parent65e3cc8f6cc73e45db827cbeee4ccecbf1502496 (diff)
downloadpublic-inbox-0a65fd278cb5b4e308fc2535753a3f1a5e78cbf4.tar.gz
This was causing -xcpdb and other admin modules to fail
outside of tests (or when testing with the slow TEST_RUN_MODE=0).
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/Search.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm
index eb1a1446..f897b833 100644
--- a/lib/PublicInbox/Search.pm
+++ b/lib/PublicInbox/Search.pm
@@ -49,7 +49,7 @@ sub load_xapian () {
                 # or make indexlevel=medium as default
                 $QP_FLAGS = FLAG_PHRASE() | FLAG_BOOLEAN() | FLAG_LOVEHATE() |
                                 FLAG_WILDCARD();
-                last;
+                return 1;
         }
         undef;
 }