Subject: Warning editing user info with empty photos

Posted on: 29/03/06 07:45am
By: sakata

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']);

Warning editing user info with empty photos

Posted on: 29/03/06 01:51pm
By: Dirk

Fixed in CVS now. Thanks!

bye, Dirk

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=65773