Skip to content

Commit

Permalink
Update Notes: 2025-02-06
Browse files Browse the repository at this point in the history
Fixed:
* Hotfix release for #448
  • Loading branch information
leiweibau committed Feb 6, 2025
1 parent 9fa33fb commit bf8c7dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions front/php/server/parameters.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// parameters.php - Front module. Server side. Manage Parameters
//------------------------------------------------------------------------------
// Puche 2021 [email protected] GNU GPLv3
// leiweibau 2024+ https://github.com/leiweibau GNU GPLv3
// leiweibau 2023+ https://github.com/leiweibau GNU GPLv3
//------------------------------------------------------------------------------

session_start();
Expand Down Expand Up @@ -71,8 +71,7 @@ function getParameter() {
WHERE par_ID="' . quotes($_REQUEST['parameter']) . '"';
$result = $db->query($sql);
$row = $result->fetchArray(SQLITE3_NUM);
if (isset($row[0])) {$value = $row[0];} else {unset($value);}
//$value = $row[0];
$value = $row[0];

echo (json_encode($value));
}
Expand Down
3 changes: 1 addition & 2 deletions front/php/server/util.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ function formatIPlong($IP) {

// Others functions
function getDateFromPeriod() {
if (isset($_REQUEST['period'])) {$period = $_REQUEST['period'];} else {unset($period);}
//$period = $_REQUEST['period'];
$period = $_REQUEST['period'];
return '"' . date('Y-m-d', strtotime('+1 day -' . $period)) . '"';
}

Expand Down
Binary file modified tar/pialert_latest.tar
Binary file not shown.

0 comments on commit bf8c7dd

Please sign in to comment.