mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 08:03:30 +02:00
Fix fatal in scripts/shoutcast.php
[lint] PHP Fatal error: Call-time pass-by-reference has been removed in /var/lib/jenkins/jobs/librenms/workspace/scripts/shoutcast.php on line 43
This commit is contained in:
@@ -40,7 +40,7 @@
|
|||||||
$cmd = (isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : "");
|
$cmd = (isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : "");
|
||||||
|
|
||||||
function get_data($host, $port) {
|
function get_data($host, $port) {
|
||||||
$fp = @fsockopen($host, $port, &$errno, &$errstr, 5);
|
$fp = @fsockopen($host, $port, $errno, $errstr, 5);
|
||||||
if(!$fp) { $connect = 0; }
|
if(!$fp) { $connect = 0; }
|
||||||
if (!isset($connect)) {
|
if (!isset($connect)) {
|
||||||
fputs($fp, "GET /7.html HTTP/1.0\r\n"
|
fputs($fp, "GET /7.html HTTP/1.0\r\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user