mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00: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] : "");
|
||||
|
||||
function get_data($host, $port) {
|
||||
$fp = @fsockopen($host, $port, &$errno, &$errstr, 5);
|
||||
$fp = @fsockopen($host, $port, $errno, $errstr, 5);
|
||||
if(!$fp) { $connect = 0; }
|
||||
if (!isset($connect)) {
|
||||
fputs($fp, "GET /7.html HTTP/1.0\r\n"
|
||||
|
Reference in New Issue
Block a user