MINOR Defensive coding in MigrateSiteTreeLinkingTask

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@104594 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-05-11 08:55:41 +00:00 committed by Sam Minnee
parent bb5a333837
commit 90b9198e16

View File

@ -24,7 +24,7 @@ class MigrateSiteTreeLinkingTask extends BuildTask {
// Databases like MSSQL will give duplicate results - remove them
// This would normally be fixed by using SELECT DISTINCT, but DataObject::get() doesn't support it
$linkedPages->removeDuplicates();
if($linkedPages) $linkedPages->removeDuplicates();
if($linkedPages) foreach($linkedPages as $page) {
$tracking = DB::query(sprintf (