Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Temporary fix to duplicate entries being created.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchisari authored and The Appleseed Project committed Jan 23, 2011
1 parent 24c735e commit 4ecbd14
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hooks/quicksocial/quicksocial.php
Original file line number Diff line number Diff line change
Expand Up @@ -1349,6 +1349,15 @@ public function _StoreNodeNetwork ( $pSource, $pMethods, $pDescription, $pVersio
}
}

// For some reason, duplicate entries are getting created. For now, delete duplicates.
$query = "
DELETE FROM #__NetworkNodes
USING #__NetworkNodes, #__NetworkNodes as vtable
WHERE (#__NetworkNodes.Node_PK > vtable.Node_PK)
AND (#__NetworkNodes.Domain=vtable.Domain);
";
$model->Query ( $query );

return ( true );
}
}

0 comments on commit 4ecbd14

Please sign in to comment.