Fehler bei IPS_GetEvent(ID)[CyclicTimeFrom]

Hallo,

wenn ich folgenden Befehl absetze:

$eh = IPS_GetEvent(52980)[CyclicTimeFrom][Hour];

bekomme ich diese Fehlermeldung:

Warning: Use of undefined constant CyclicTimeFrom - assumed ‚CyclicTimeFrom‘ (this will throw an Error in a future version of PHP) in /var/lib/symcon/scripts/23775.ips.php on line 3

Warning: Use of undefined constant Hour - assumed ‚Hour‘ (this will throw an Error in a future version of PHP) in /var/lib/symcon/scripts/23775.ips.php on line 3
1570566900

Bei

$eh = IPS_GetEvent(52980)[CyclicTimeFrom]

bekomme ich normal den Array ausgeworfen, ohne Fehlermeldung.

Ich möchte die Meldung nicht einfach unterdrücken und dann irgendwann in Probleme laufen, wie bekomme ich das gefixt?

Vielen Dank und Grüße

Götz

Musst du auch nicht unterdrücken, du musst nur dem Lösungsvorschlag in der Fehlermeldung folgen ;).

Korrekt wäre

['CyclicTimeFrom']

also mit Hochkommas.

Bei Hours auch ;).

:banghead: Danke, Ralf! :rolleyes: