From 2a9e840ffab3234a044a1a8f686d3c66fa775e72 Mon Sep 17 00:00:00 2001 From: Martin Kamerbeek Date: Mon, 16 Aug 2004 23:02:02 +0000 Subject: [PATCH] fixing a small bug where text id's arent compared right --- lib/DBIx/Tree/NestedSet.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DBIx/Tree/NestedSet.pm b/lib/DBIx/Tree/NestedSet.pm index 0b48122b8..271a0ab56 100644 --- a/lib/DBIx/Tree/NestedSet.pm +++ b/lib/DBIx/Tree/NestedSet.pm @@ -619,7 +619,7 @@ sub swap_nodes{ my $first_id=$params{first_id}; my $second_id=$params{second_id}; croak("You didn't give me valid IDs to swap!\n") if(! $first_id || ! $second_id); - croak("You can't switch a node with itself!\n") if($first_id == $second_id); + croak("You can't switch a node with itself!\n") if($first_id eq $second_id); $self->_lock_tables(); my $first_id_info=$self->get_hashref_of_info_by_id($first_id);