mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-03-05 23:17:00 -05:00
Use PHP <= 5.3 array syntax in greader.php fix
This commit is contained in:
@@ -86,7 +86,7 @@ function debugInfo() {
|
||||
if (function_exists('getallheaders')) {
|
||||
$ALL_HEADERS = getallheaders();
|
||||
} else { //nginx http://php.net/getallheaders#84262
|
||||
$ALL_HEADERS = [];
|
||||
$ALL_HEADERS = array();
|
||||
foreach ($_SERVER as $name => $value) {
|
||||
if (substr($name, 0, 5) === 'HTTP_') {
|
||||
$ALL_HEADERS[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;
|
||||
|
||||
Reference in New Issue
Block a user