Welcome to Geeklog, Anonymous Friday, November 08 2024 @ 09:19 pm EST
Geeklog Forums
Warning editing user info with empty photos
Status: offline
sakata
Forum User
Junior
Registered: 12/17/01
Posts: 25
Location:Japan
Do you get error from the system when you edit Account information?
My freind reported that if the photo field is emty, system waring orrurs in windows environment.
This is because Geeklog tries to rename '' to ''.
suggestion is as follows.
usersetting.php
enclose the following code with if ($photo != '') {}.
$newphoto = preg_replace ('/' . $_USER['username'] . '/',
...
addslashes ($newphoto), "uid", $_USER['uid']);
My freind reported that if the photo field is emty, system waring orrurs in windows environment.
This is because Geeklog tries to rename '' to ''.
suggestion is as follows.
usersetting.php
enclose the following code with if ($photo != '') {}.
$newphoto = preg_replace ('/' . $_USER['username'] . '/',
...
addslashes ($newphoto), "uid", $_USER['uid']);
9
15
Quote
All times are EST. The time is now 09:19 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content