in writList.php, line 241-246, the function stripos only works in php5, I guess there are still many roster users using php4, including me
![Very Happy :D](http://www.wowroster.net/images/smilies/icon_biggrin.gif)
Moderator: Rihlsul
if (stripos($search,'Leather') &&
((stripos($search,$wordings[$roster_conf['roster_lang']]['ruggedleather']) !== false) ||
(stripos($search,$wordings[$roster_conf['roster_lang']]['thickleather']) !== false) ||
(stripos($search,$wordings[$roster_conf['roster_lang']]['heavyleather']) !== false) ||
(stripos($search,$wordings[$roster_conf['roster_lang']]['mediumleather']) !== false) ||
(stripos($search,$wordings[$roster_conf['roster_lang']]['lightleather']) !== false))
) {
return;
if (preg_match('/leather/i', $search) &&
((preg_match('/'.$wordings[$roster_conf['roster_lang']]['ruggedleather'].'/i', $search) !== false) ||
(preg_match('/'.$wordings[$roster_conf['roster_lang']]['thickleather'].'/i', $search) !== false) ||
(preg_match('/'.$wordings[$roster_conf['roster_lang']]['heavyleather'].'/i', $search) !== false) ||
(preg_match('/'.$wordings[$roster_conf['roster_lang']]['mediumleather'].'/i', $search) !== false) ||
(preg_match('/'.$wordings[$roster_conf['roster_lang']]['lightleather'].'/i', $search) !== false))
) {
return;
PHP Manual wrote:Tip: Do not use preg_match() if you only want to check if one string is contained in another string. Use strpos() or strstr() instead as they will be faster.
if (stristr($search,'Leather') &&
((stristr($search,$wordings[$roster_conf['roster_lang']]['ruggedleather']) !== false) ||
(stristr($search,$wordings[$roster_conf['roster_lang']]['thickleather']) !== false) ||
(stristr($search,$wordings[$roster_conf['roster_lang']]['heavyleather']) !== false) ||
(stristr($search,$wordings[$roster_conf['roster_lang']]['mediumleather']) !== false) ||
(stristr($search,$wordings[$roster_conf['roster_lang']]['lightleather']) !== false))
) {
return;
Fatal error: Call to undefined function: stripos() in /home/sites/site71/users/myths/web/roster/addons/writcalc/writList.php on line 241
Users browsing this forum: No registered users and 0 guests