diff options
| author | fisharebest <fisharebest@gmail.com> | 2011-11-06 18:55:32 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2011-11-06 18:55:32 +0000 |
| commit | 557ddbb93a6fe838c04040a582283b6a4821d39b (patch) | |
| tree | 4ac15dadbf71a3d3d01bf6f371c78f89d049c7b5 /action.php | |
| parent | f0c3d69eeee90388640e0a309680e451fc313c0c (diff) | |
| download | webtrees-557ddbb93a6fe838c04040a582283b6a4821d39b.tar.gz webtrees-557ddbb93a6fe838c04040a582283b6a4821d39b.tar.bz2 webtrees-557ddbb93a6fe838c04040a582283b6a4821d39b.zip | |
Fix: PHP error when copying to clipboard
Diffstat (limited to 'action.php')
| -rw-r--r-- | action.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/action.php b/action.php index 8a3ab4df62..280e1d3e5a 100644 --- a/action.php +++ b/action.php @@ -60,7 +60,7 @@ case 'copy-fact': // Copy a fact to the clipboard // The calling page may want to reload, to refresh its "paste" buffer require WT_ROOT.'includes/functions/functions_edit.php'; - $fact=new WT_Event(rawurldecode(safe_POST('factgedcom', WT_REGEX_UNSAFE))); + $fact=new WT_Event(rawurldecode(safe_POST('factgedcom', WT_REGEX_UNSAFE)), null, 0); // Where can we paste this? if (preg_match('/^(NOTE|SOUR|OBJE)$/', $fact->getTag())) { // Some facts can be pasted to any record |
