diff --git a/include/functions_trackbacks.inc.php b/include/functions_trackbacks.inc.php index 9b4e52e6..4882d3db 100644 --- a/include/functions_trackbacks.inc.php +++ b/include/functions_trackbacks.inc.php @@ -484,6 +484,7 @@ function serendipity_handle_references($id, $author, $title, $text, $dry_run = f global $serendipity; static $old_references = array(); static $saved_references = array(); + static $saved_urls = array(); static $debug = false; if ($dry_run) { @@ -499,6 +500,7 @@ function serendipity_handle_references($id, $author, $title, $text, $dry_run = f foreach($old_references AS $idx => $old_reference) { // We need the current reference ID to restore it later. $saved_references[$old_reference['link'] . $old_reference['name']] = $current_references[$old_reference['link'] . $old_reference['name']] = $old_reference; + $saved_urls[$old_reference['link']] = true; } } if ($debug) echo "Got references in dry run:
" . print_r($current_references, true) . "