Jelajahi Sumber

OPML compatibility PHP 5.3

https://github.com/FreshRSS/FreshRSS/issues/1202
https://github.com/FreshRSS/FreshRSS/pull/1206
Alexandre Alapetite 9 tahun lalu
induk
melakukan
40f1873de7
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      lib/lib_opml.php

+ 1 - 1
lib/lib_opml.php

@@ -128,7 +128,7 @@ function libopml_parse_outline($outline_xml, $strict = true) {
  * the OPML 2.0 category attribute is used
  */
 function preprocessing_categories($doc) {
-	$outline_categories = [];
+	$outline_categories = array();
 	$body = $doc->getElementsByTagName('body')->item(0);
 	$xpath = new DOMXpath($doc);
 	$outlines = $xpath->query('/opml/body/outline[@category]');