avoid to check chinese field

This commit is contained in:
wlx 2015-01-05 05:02:10 +00:00
parent 3e8640675b
commit 542bcdd09a
1 changed files with 1 additions and 9 deletions

View File

@ -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 中的作者英文";