Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Defensive coding in MigrateSiteTreeLinkingTask (from r104594)

git-svn-id: svn:// 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit 59ae019b6d2098fbc4aadffa85f753421a1c2efe 1 parent deb5332
@chillu chillu authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tasks/MigrateSiteTreeLinkingTask.php
2  tasks/MigrateSiteTreeLinkingTask.php
@@ -24,7 +24,7 @@ public function run($request) {
// 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 (
Please sign in to comment.
Something went wrong with that request. Please try again.