From d97c541ec79effb32811ceb5506a9e7c3a0d99a3 Mon Sep 17 00:00:00 2001 From: fisharebest Date: Wed, 15 Dec 2010 07:31:20 +0000 Subject: Remove unnecessary "@". --- includes/functions/functions_edit.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/functions/functions_edit.php b/includes/functions/functions_edit.php index 6708492638..1bc0e9f18c 100644 --- a/includes/functions/functions_edit.php +++ b/includes/functions/functions_edit.php @@ -1269,7 +1269,8 @@ function add_simple_tag($tag, $upperlevel='', $label='', $readOnly='', $noClose= if (empty($linkToID)) $linkToID = $pid; $subnamefacts = array("NPFX", "GIVN", "SPFX", "SURN", "NSFX", "_MARNM_SURN"); - @list($level, $fact, $value) = explode(' ', $tag); + preg_match('/^(?:(\d+) ('.WT_REGEX_TAG.') ?(.*))/', $tag, $match); + list(, $level, $fact, $value) = $match; // element name : used to POST data if ($level==0) { -- cgit v1.3