Fixed Warnings for Recordings, Ring Group Edit and Operator Panel (#6739)

* Update ring_group_edit.php

* Update recordings.php

* Update recording_edit.php

* Update content.php
This commit is contained in:
Anthony
2023-06-02 14:37:30 -06:00
committed by GitHub
parent 150735c810
commit fae05e5341
4 changed files with 11 additions and 10 deletions

View File

@@ -150,7 +150,7 @@ if (count($_POST) > 0 && empty($_POST["persistformvar"])) {
}
//pre-populate the form
if (count($_GET)>0 && $_POST["persistformvar"] != "true") {
if (!empty($_GET) && empty($_POST["persistformvar"])) {
$recording_uuid = $_GET["id"];
$sql = "select recording_name, recording_filename, recording_description from v_recordings ";
$sql .= "where domain_uuid = :domain_uuid ";

View File

@@ -315,7 +315,7 @@
}
$sql .= $sql_search;
$database = new database;
$num_rows = $database->select($sql, $parameters, 'column');
$num_rows = $database->select($sql, $parameters ?? null, 'column');
//prepare to page the results
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
@@ -340,7 +340,7 @@
$sql .= order_by($order_by, $order, 'recording_name', 'asc');
$sql .= limit_offset($rows_per_page, $offset);
$database = new database;
$recordings = $database->select($sql, $parameters, 'all');
$recordings = $database->select($sql, $parameters ?? null, 'all');
unset($sql, $parameters);
//get current recordings password