1
trunet
Bug in 2.0.6 with comulative '...' when edit user profile form
  • 2004/2/17 5:32

  • trunet

  • Just popping in

  • Posts: 5

  • Since: 2002/1/2 1


Hi...

I find a minor bug in the include/functions.php in function xoops_substr.

When I edit a user multiple times, this function put '...' each time I save the user profile.

The best fix I can find for it:
include/functions.php
line: 575
change this:
Quote:

return substr($str, $start, $length - strlen($trimmarker)).$trimmarker;

to this:
Quote:

if (substr($str, strlen($str), -3) == '...') {
return $str;
} else {
return substr($str, $start, $length - strlen($trimmarker)).$trimmarker;
}


tkz...

Login

Who's Online

378 user(s) are online (218 user(s) are browsing Support Forums)


Members: 0


Guests: 378


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits