000-CMS
avatar gregambrose
gregambrose
22 Nov 2014

This error message appears in the search with no search parameter, because mb_strpos has an empty second parameter.

I fixed this as follows, though I'm not sure of the implications. Can someone tidy this up and add it to Joomla if you see fit.

if ( $offset === FALSE ) {

    // 22-nov-2014 Greg check search for being empty to avoid Delimiter Empty error
    if(strlen($search) > 0) {
        return mb_strpos($str, $search);
    }
    else {
        return 0;
    }

} else {
    return mb_strpos($str, $search, $offset);
}
avatar gregambrose gregambrose - open - 22 Nov 2014
avatar zero-24
zero-24 - comment - 22 Nov 2014

@gregambrose please send your changes against the Joomla CMS repo: https://github.com/joomla/joomla-cms

This Repo here is for the JTracker Application.

If you need help by creating a github PR please see here: http://docs.joomla.org/Using_the_Github_UI_to_Make_Pull_Requests

Thanks

avatar elkuku elkuku - change - 23 Nov 2014
Labels Added: 000-CMS
avatar elkuku elkuku - change - 23 Nov 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-11-23 02:50:40
avatar elkuku elkuku - close - 23 Nov 2014

Add a Comment

Login with GitHub to post a comment