From d5b3d9db04920ca37929cb03bd4399f99d193795 Mon Sep 17 00:00:00 2001 From: wlx Date: Mon, 5 Jan 2015 05:07:09 +0000 Subject: [PATCH] set the author and org null --- application/models/data/Doi.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/application/models/data/Doi.php b/application/models/data/Doi.php index 003b8c17..61396feb 100644 --- a/application/models/data/Doi.php +++ b/application/models/data/Doi.php @@ -132,17 +132,17 @@ class Doi extends Zend_Controller_Plugin_Abstract $orgs_en = array(); foreach($data['info'] as $k=>$v) { - $authors[$v['order']] = str_replace(",",",",$v['author']); - $orgs[$v['order']] = str_replace(",",",",$v['organization']); + @$authors[$v['order']] = str_replace(",",",",$v['author']); + @$orgs[$v['order']] = str_replace(",",",",$v['organization']); $authors_en[$v['order']] = str_replace(",",",",$v['author_en']); $orgs_en[$v['order']] = str_replace(",",",",$v['organization_en']); } - $authors = "{".join(",",$authors)."}"; - $orgs = "{".join(",",$orgs)."}"; + //$authors = "{".join(",",$authors)."}"; + //$orgs = "{".join(",",$orgs)."}"; $authors_en = "{".join(",",$authors_en)."}"; $orgs_en = "{".join(",",$orgs_en)."}"; - $data['authors'] = $authors; - $data['organization'] = $orgs; + $data['authors'] = null; + $data['organization'] = null; $data['author_en'] = $authors_en; $data['organization_en'] = $orgs_en; unset($data['info']);