From db9766e91ef3e5b8a9170fc2f69f875653699ea9 Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Mon, 19 Dec 2016 15:19:57 -0500 Subject: [PATCH] Fix create/edit access url - refs BT#11414 --- main/admin/access_url_edit.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/admin/access_url_edit.php b/main/admin/access_url_edit.php index 5b95606b7d..12aed3cba4 100755 --- a/main/admin/access_url_edit.php +++ b/main/admin/access_url_edit.php @@ -24,10 +24,10 @@ if ($form->validate()) { $url_array = $form->getSubmitValues(); $url = Security::remove_XSS($url_array['url']); $description = Security::remove_XSS($url_array['description']); - $active = intval($url_array['active']); - $url_id = $url_array['id']; + $active = isset($url_array['active']) ? intval($url_array['active']) : 0; + $url_id = isset($url_array['id']) ? intval($url_array['id']) : 0; $url_to_go = 'access_urls.php'; - if ($url_id != '') { + if (!empty($url_id)) { //we can't change the status of the url with id=1 if ($url_id == 1) { $active = 1;