Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
config: disable GET request if sever is not defined
Browse files Browse the repository at this point in the history
Change-Id: I49958db1acf923b39522e61785a6c1be963fb1ca
  • Loading branch information
andi34 committed Sep 16, 2021
1 parent c7ddb36 commit 6096655
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@
$newConfig['remotebuzzer']['port'] = 14711;
}

if (isset($newConfig['get_request']['server']) && empty($newConfig['get_request']['server'])) {
$newConfig['get_request']['countdown'] = false;
$newConfig['get_request']['processed'] = false;
}

if ($newConfig['collage']['layout'] === '1+2') {
$newConfig['collage']['limit'] = 3;
} else {
Expand Down

0 comments on commit 6096655

Please sign in to comment.