* fix the bug of add file.

This commit is contained in:
wangchunsheng
2009-11-17 02:03:31 +00:00
parent 2dbe450c78
commit 10f2d0b268

View File

@@ -92,6 +92,7 @@ class fileModel extends model
}
else
{
if(empty($_FILES[$htmlTagName]['name'])) return $files;
extract($_FILES[$htmlTagName]);
$file['extension'] = $this->getExtension($name);
$file['pathname'] = $this->setPathName(0, $file['extension']);