prevent some uninitialized string warnings
authorJason Etheridge <jason@esilibrary.com>
Wed, 17 Aug 2011 05:30:27 +0000 (01:30 -0400)
committerJason Etheridge <jason@esilibrary.com>
Thu, 1 Dec 2011 18:14:10 +0000 (13:14 -0500)
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Utils/RemoteAccount.pm

index 164e227..7c586b4 100644 (file)
@@ -242,7 +242,7 @@ sub get {
     
     # $self->content($content);
 
-    if ($self->type eq "FTP") {
+    if (defined $self->type && $self->type eq "FTP") {
         return $self->get_ftp(@{$self->{get_args}});
     } else {
         my %keys = $self->key_check($params);
@@ -313,7 +313,7 @@ sub ls {
 
     $self->{ls_args} = \@targets;
 
-    if ($self->type eq "FTP") {
+    if (defined $self->type && $self->type eq "FTP") {
         return $self->ls_ftp(@targets);
     } else {
         my %keys = $self->key_check($params);