Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit 9af7b7b

Browse files
authored
fix: unexpected types in some edge cases (#29)
1 parent 9a9a343 commit 9af7b7b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/usr/local/emhttp/plugins/tailscale/include/Tailscale/Info.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public function getKeyExpirationWarning(): ?Warning
143143

144144
public function getTailscaleLockEnabled(): bool
145145
{
146-
return $this->lock->Enabled;
146+
return $this->lock->Enabled ?? false;
147147
}
148148

149149
public function getTailscaleLockSigned(): bool

src/usr/local/emhttp/plugins/tailscale/interface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
if (is_resource($process)) {
2828
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
29-
fwrite($pipes[0], $_POST['ts_data']);
29+
fwrite($pipes[0], $_POST['ts_data'] ?? "");
3030
fclose($pipes[0]);
3131
}
3232

0 commit comments

Comments
 (0)