insertemployee.php -- Picture Display Fix
Status: Alpha
Brought to you by:
nileshd
Due to incorrect coding and user assumptions, the
insertemployee.php file found in the /admin directory
displays a picture input box and various errors when no
picture is entered, this is because:
if($photo1!="none")
{
}
It assumes that the user will type none, when in fact it
can either be changed to null or detect a file upload.
For a quick and easy fix:
if($photo1!="")
{
}
I'll work on a more indepth correction fix, that will check
for an actual file upload instead of a null statement.
Thanks,
ParabolaStudios.com
Logged In: NO
Actually, apon more reading, It can be caused by a globals
error, but we still decided to make everything non-global
comp.