Browse code

rss.php: Replace error suppression settings with proper PHP 8 Undefined variable fix

Clarissa Walker authored on 2026/09/10 09:19:19
Showing 1 changed files
... ...
@@ -20,9 +20,18 @@
20 20
 // To read the license please visit http://www.gnu.org/copyleft/gpl.html
21 21
 // ----------------------------------------------------------------------
22 22
 
23
-ini_set('display_errors', 0);
24
-ini_set('display_startup_errors', 0);
25
-error_reporting(-1);
23
+/* PHP 8 fix */
24
+$allowed_tags = '';
25
+$recentdays = '';
26
+$sitename = '';
27
+$url = '';
28
+$multiplecats = '';
29
+$minwords = '';
30
+$maxwords = '';
31
+$action = '';
32
+$pwdsetting = '';
33
+$imagewidth = '';
34
+$imageheight = '';
26 35
 
27 36
 define("_BASEDIR", "");  
28 37
 require_once("config.php"); 
... ...
@@ -61,7 +70,7 @@ while($rate = dbassoc($ratlist)) {
61 70
   $rss.="<title>".xmlentities( $sitename)."</title>\n"; 
62 71
   $rss.="<managingEditor>$siteemail</managingEditor>\n"; 
63 72
   $rss.="<webMaster>$siteemail</webMaster>\n"; 
64
-  $rss.="<language>$language</language>\n"; 
73
+  $rss.="<language>$language</language>\n";
65 74
 
66 75
   $query = _STORYQUERY." ORDER BY updated DESC LIMIT 20";
67 76
   $results = dbquery($query);