Ankündigung
Einklappen
Keine Ankündigung bisher.
Fehler in Gr_Radiostatus - PHP Fusion 7
Einklappen
Neue Werbung 2019
Einklappen
X
-
Es funktioniert leider nicht!
Erstmal, die komplette fehlermeldung lautet:
PHP-Code:Notice: Undefined index: value in /homepages/13/d208728423/htdocs/locomotion-reloadet/locotest/infusions/gr_radiostatus_panel/gr_radiostatus_class.php on line 87
So, jetzt zu Euren vorschlägen, die Variante von Griffith zeigt mir folgenden fehler:
PHP-Code:Parse error: syntax error, unexpected T_CONST, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/13/d208728423/htdocs/locomotion-reloadet/locotest/infusions/gr_radiostatus_panel/gr_radiostatus_class.php on line 23
PHP-Code:Parse error: syntax error, unexpected ';', expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/13/d208728423/htdocs/locomotion-reloadet/locotest/infusions/gr_radiostatus_panel/gr_radiostatus_class.php on line 121
Einen Kommentar schreiben:
-
Hi,
versuche es mal hiermit:
Code:function GetIRC() { if($this->values[$this->indexes["IRC"][0]]["value"] != "") { return $this->values[$this->indexes["IRC"][0]]["value"]; } else { return "Autostream"; }
Einen Kommentar schreiben:
-
Bitte immer die komplette Fehlermeldung posten und nicht nur das Ende.
So könnte eine schnelle Anpassung aussehen, falls es das ist, was du meintest.
PHP-Code:22 class SHOUTcast {
23 const DEFAULT_IRC = "Autostream";
86 function GetIRC() {
87 return isset($this->values[$this->indexes["IRC"][0]]["value"])
88 ? $this->values[$this->indexes["IRC"][0]]["value"]
89 : self::DEFAULT_IRC;
Einen Kommentar schreiben:
Einen Kommentar schreiben: