mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
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:
@@ -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 ";
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user