sugarcrm/sugarcrm_dev — pull request #73 by crazytonyi (2012-01-17 20:11:50+00:00)
Title: The way to check if strpos has returned 0 (and not false), you have to u...

...se "strpos(haystack,needle) === 0". Without this, Sugar was building a query using "w Smith" instead of "Andrew Smith" if there was no salutation in the search string, since it was trimming off the first 4 characters for the non-included "Mr. " -- anthony@epicom.com