Skip to content

Commit

Permalink
more errors on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlan-00 committed May 13, 2024
1 parent 7a08e2c commit 9f963a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/Module/Application/SmartPlaylist/UpdatePlaylistAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,11 @@ public function run(ServerRequestInterface $request, GuiGatekeeperInterface $gat
(int) ($request->getQueryParams()['playlist_id'] ?? 0)
);

$data = (array)$request->getParsedBody();
if ($playlist->has_access()) {
$data = $request->getParsedBody();
if (
is_array($data) &&
$playlist->has_access()
) {
$playlist->set_rules($data);
$playlist->update();
$playlist->format();
Expand Down
2 changes: 1 addition & 1 deletion src/Module/Broadcast/Broadcast_Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ protected function unregisterListener(ConnectionInterface $conn): void
{
foreach ($this->listeners as $broadcast_id => $brlisteners) {
$lindex = array_search($conn, $brlisteners);
if ($lindex) {
if ($lindex && isset($this->listeners[$broadcast_id][$lindex])) {
unset($this->listeners[$broadcast_id][$lindex]);
echo "[info]Listener left broadcast " . $broadcast_id . "." . "\r\n";

Expand Down
2 changes: 1 addition & 1 deletion src/Module/Util/Mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public function send($phpmailer = null): bool
if ($retval === true) {
return true;
} else {
debug_event(self::class, 'Did not send mail. ErrorInfo: ' . ($mail->ErrorInfo ?? ''), 5);
debug_event(self::class, 'Did not send mail. ErrorInfo: ' . $mail->ErrorInfo, 5);

return false;
}
Expand Down

0 comments on commit 9f963a9

Please sign in to comment.