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...



2
trunet
Many BUGS found in the Xoops 2.0.5
  • 2003/11/21 13:58

  • trunet

  • Just popping in

  • Posts: 5

  • Since: 2002/1/2 1


I am brazilian, so, sorry for my English :)

If you turn the DEBUG in PHP Debug ON, 3 errors happend in the homepage:
1) Notice [PHP]: Undefined index: modules in file templates_c/db%3Asystem_block_mainmenu.html line 10
If you go to the source of templates_c/db%3Asystem_block_mainmenu.html you find a count((array)$this->_tpl_vars['block']['modules']), and when you enable a module, this error disappear.

2) Notice [PHP]: Undefined index: xoops_lblocks in file class/smarty/Smarty.class.php line 626
I don't know, but I found a @is_array there

3) Notice [PHP]: Undefined index: xoops_module_header in file templates_c/default^theme.html line 35
I don't know this too.

I think that it is a good thing to do to correct this "minor" bugs.

tks...




TopTop



Login

Who's Online

203 user(s) are online (146 user(s) are browsing Support Forums)


Members: 0


Guests: 203


more...

Donat-O-Meter

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

Latest GitHub Commits