summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-12-15 07:31:20 +0000
committerfisharebest <fisharebest@gmail.com>2010-12-15 07:31:20 +0000
commitd97c541ec79effb32811ceb5506a9e7c3a0d99a3 (patch)
tree31f763a2a82e018e9b2dc237af7f63372160f6d3
parent6c0388f9052d53b3420b9ff1f79a1a604d11dac6 (diff)
downloadwebtrees-d97c541ec79effb32811ceb5506a9e7c3a0d99a3.tar.gz
webtrees-d97c541ec79effb32811ceb5506a9e7c3a0d99a3.tar.bz2
webtrees-d97c541ec79effb32811ceb5506a9e7c3a0d99a3.zip
Remove unnecessary "@".
-rw-r--r--includes/functions/functions_edit.php3
1 files changed, 2 insertions, 1 deletions
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) {