mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-30 05:09:06 +02:00
MINOR Defensive coding in MigrateSiteTreeLinkingTask (from r104594)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112354 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
deb533238c
commit
59ae019b6d
@ -24,7 +24,7 @@ class MigrateSiteTreeLinkingTask extends BuildTask {
|
|||||||
|
|
||||||
// Databases like MSSQL will give duplicate results - remove them
|
// 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
|
// 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) {
|
if($linkedPages) foreach($linkedPages as $page) {
|
||||||
$tracking = DB::query(sprintf (
|
$tracking = DB::query(sprintf (
|
||||||
|
Loading…
Reference in New Issue
Block a user