cvs: php-master-web /scripts rss_parser
| From: | Gabor Hojtsy | Date: | Mon, 06 Jan 2003 20:16:11 +0000 |
| Subject: | cvs: php-master-web /scripts rss_parser | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-14805@lists.php.net to get a copy of this message | ||
goba Mon Jan 6 15:16:11 2003 EDT
Modified files:
/php-master-web/scripts rss_parser
Log:
Commit fix sent by Tobias Schlitt (a bit modified)
Index: php-master-web/scripts/rss_parser
diff -u php-master-web/scripts/rss_parser:1.4 php-master-web/scripts/rss_parser:1.5
--- php-master-web/scripts/rss_parser:1.4 Sun Jan 5 06:51:15 2003
+++ php-master-web/scripts/rss_parser Mon Jan 6 15:16:11 2003
@@ -119,7 +119,11 @@
// Everything else is part of the headline text
} else {
if (!preg_match('/^\s*\?>\s*$/', $line)) {
- $headlines[$headlineid]['text'] =
$headlines[$headlineid]['text'] . " $line";
+ if (isset($headlines[$headlineid]['text'])) {
+ $headlines[$headlineid]['text'] .= " $line";
+ } else {
+ $headlines[$headlineid]['text'] = " $line";
+ }
}
}
}