summaryrefslogtreecommitdiff
path: root/action.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2013-08-13 18:09:07 +0100
committerGreg Roach <fisharebest@gmail.com>2013-08-13 18:09:07 +0100
commitc7c4df7d4330535d047cefd6893184d8636cd7a2 (patch)
tree2e80e2f00c588bc28df6cb15fe90f18540cfe665 /action.php
parent258fa15fb74c24aadf7653355e7ad5ac5084afec (diff)
downloadwebtrees-c7c4df7d4330535d047cefd6893184d8636cd7a2.tar.gz
webtrees-c7c4df7d4330535d047cefd6893184d8636cd7a2.tar.bz2
webtrees-c7c4df7d4330535d047cefd6893184d8636cd7a2.zip
Copy to clipboard fails after 10 items (thanks to Carl Scase)
Diffstat (limited to 'action.php')
-rw-r--r--action.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/action.php b/action.php
index d44676fc57..cf1c009df3 100644
--- a/action.php
+++ b/action.php
@@ -85,7 +85,7 @@ case 'copy-fact':
);
// The clipboard only holds 10 facts
while (count($WT_SESSION->clipboard)>10) {
- array_pop($WT_SESSION->clipboard);
+ array_shift($WT_SESSION->clipboard);
}
WT_FlashMessages::addMessage(WT_I18N::translate('Record copied to clipboard'));
break 2;