Add some minor fixes

This commit is contained in:
markjcrane
2023-05-24 15:39:10 -06:00
parent cc44fc47c9
commit 9e5dec8113
2 changed files with 12 additions and 12 deletions

View File

@@ -58,7 +58,7 @@
//get total extension count from the database, check limit, if defined
if ($action == 'add') {
if ($_SESSION['limit']['extensions']['numeric'] != '') {
if (!empty($_SESSION['limit']['extensions']['numeric'])) {
$sql = "select count(*) ";
$sql .= "from v_extensions ";
$sql .= "where domain_uuid = :domain_uuid ";
@@ -76,7 +76,7 @@
}
//get the http values and set them as php variables
if (count($_POST) > 0) {
if (!empty($_POST) && count($_POST) > 0) {
//get the values from the HTTP POST and save them as PHP variables
if ($action == 'add' || permission_exists("extension_extension")) {