Skip to content

Commit

Permalink
Merge pull request #10 from Burki24/patch-6
Browse files Browse the repository at this point in the history
FIX: Fatal error: Uncaught ArgumentCountError: strpos() expects at le…
  • Loading branch information
Nall-chan authored Oct 19, 2024
2 parents c223a41 + 335497c commit 5e57375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/ModulBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public function RequestAction($ident, $value)
$payloadKey = self::convertIdentToPayloadKey($ident);

// Umwandlung von true/false zu "ON"/"OFF" für state
if (strpos($payloadKey . 'state') === 0 && is_bool($value)) {
if (strpos($payloadKey, 'state') === 0 && is_bool($value)) {
$value = $value ? 'ON' : 'OFF';
$this->SendDebug(__FUNCTION__ . ' :: ' . __LINE__ . ' :: Converted boolean to state: ', $value, 0);
}
Expand Down

0 comments on commit 5e57375

Please sign in to comment.