From 10f2d0b268afdcf15158265c32c9ab82709f126b Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Tue, 17 Nov 2009 02:03:31 +0000 Subject: [PATCH] * fix the bug of add file. --- trunk/module/file/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/trunk/module/file/model.php b/trunk/module/file/model.php index a78ccb98c3..956aaf1794 100644 --- a/trunk/module/file/model.php +++ b/trunk/module/file/model.php @@ -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']);