Author Topic: [SOLVED] ChangeUserTitle.php isn't working anymore!  (Read 2430 times)

Offline Teun

[SOLVED] ChangeUserTitle.php isn't working anymore!
« on: December 02, 2007, 11:26:57 pm »
Hi,

After I upgraded te ChangeUserTitle.php, it isn't working anymore. I'm getting this error when I insert my new usertitle:

Code: [Select]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Netwerk
WHERE ID_MEMBER = 1
LIMIT 1' at line 3
Bestand: /home2/sitename/public_html/sitename/Sources/Subs.php
Regel: 634

Offline Daniel15

Re: ChangeUserTitle.php isn't working anymore!
« Reply #1 on: December 03, 2007, 12:17:38 pm »
Oops, looks like a bug :(
Find:
Code: [Select]
updateMemberData($context['user']['id'], array('usertitle' => $_POST['newtitle']));

Replace with:
Code: [Select]
updateMemberData($context['user']['id'], array('usertitle' => '"' . $_POST['newtitle'] . '"'));

Offline rparlett

Re: ChangeUserTitle.php isn't working anymore!
« Reply #2 on: February 08, 2008, 09:44:36 am »
Thanks for all your hard work Daniel15!

It really is appreciated.