diff options
-rw-r--r-- | src/db-reader.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db-reader.vala b/src/db-reader.vala index 840d4ba6..f2ad42a7 100644 --- a/src/db-reader.vala +++ b/src/db-reader.vala @@ -836,7 +836,7 @@ public class DbReader : Object protected void assert_no_wildcard (string field, string val) throws EngineError { - if (val.has_suffix ("*")) + if (!val.has_suffix ("*")) return; string error_message = "Field '%s' doesn't support prefix search".printf (field); |