From 542bcdd09afa629ae1bd223386383749b09aa8d4 Mon Sep 17 00:00:00 2001 From: wlx Date: Mon, 5 Jan 2015 05:02:10 +0000 Subject: [PATCH] avoid to check chinese field --- application/models/data/Doi.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/application/models/data/Doi.php b/application/models/data/Doi.php index 7a92c5e1..003b8c17 100644 --- a/application/models/data/Doi.php +++ b/application/models/data/Doi.php @@ -239,18 +239,10 @@ class Doi extends Zend_Controller_Plugin_Abstract } foreach($info as $k=>$v) { - if(empty($v['author']) && empty($v['organization']) && empty($v['order']) && empty($v['author_en']) && empty($v['organization_en']) ) + if(empty($v['order']) && empty($v['author_en']) && empty($v['organization_en']) ) { unset($info[$k]); }else{ - if(empty($v['author'])) - { - return "请输入 $k 中的作者"; - } - if(empty($v['organization'])) - { - return "请输入 $k 中的单位"; - } if(empty($v['author_en'])) { return "请输入 $k 中的作者英文";