Commit 4c745502 authored by Brian Masney's avatar Brian Masney Committed by Jim Nelson

Fix saved search for photos with unset title: Bug #743923

parent fe9d604a
......@@ -308,10 +308,9 @@ public class SearchConditionText : SearchCondition {
// title
if (SearchType.ANY_TEXT == search_type || SearchType.TITLE == search_type) {
string title = source.get_title();
if(title != null){
ret |= string_match(text, String.remove_diacritics(title.down()));
}
string? title = (null != source.get_title()) ?
String.remove_diacritics(source.get_title().down()) : null;
ret |= string_match(text, title);
}
// tags
......
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