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);
}
Labels |
Added:
000-CMS
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-11-23 02:50:40 |
@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