Kaynağa Gözat

Empty string, not undef()

Zachary Kotlarek 12 yıl önce
ebeveyn
işleme
86669f2738
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  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