Ver Fonte

Empty string, not undef()

Zachary Kotlarek há 12 anos atrás
pai
commit
86669f2738
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      Fetch.pm

+ 2 - 2
Fetch.pm

@@ -607,8 +607,8 @@ sub content() {
 
 	# Extract content (if any)
 	my $data = $self->{'content'};
-	if (!$data) {
-		return undef();
+	if (!defined($data)) {
+		$data = '';
 	}
 
 	# Standardize line endings