X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2FObject-Remote.git;a=blobdiff_plain;f=lib%2FObject%2FRemote.pm;h=c68cc8ec910e456effcd31e1c163bb773a020d69;hp=a81550181cc09dd6ffebf4bc8db6e34ad564e77b;hb=542d5b5ca3990695be389d0d497883876c189486;hpb=47c83a1379a33fc8baa4a128edc1d75d780776b0 diff --git a/lib/Object/Remote.pm b/lib/Object/Remote.pm index a815501..c68cc8e 100644 --- a/lib/Object/Remote.pm +++ b/lib/Object/Remote.pm @@ -21,6 +21,7 @@ sub BUILD { my ($self, $args) = @_; unless ($self->id) { die "No id supplied and no class either" unless $args->{class}; + ref($_) eq 'HASH' and $_ = [ %$_ ] for $args->{args}; $self->_set_id( $self->_await( $self->connection->send(