Fix create/edit access url - refs BT#11414

remotes/angel/1.11.x
Angel Fernando Quiroz Campos 8 years ago
parent cc20aed9b9
commit db9766e91e
  1. 6
      main/admin/access_url_edit.php

@ -24,10 +24,10 @@ if ($form->validate()) {
$url_array = $form->getSubmitValues(); $url_array = $form->getSubmitValues();
$url = Security::remove_XSS($url_array['url']); $url = Security::remove_XSS($url_array['url']);
$description = Security::remove_XSS($url_array['description']); $description = Security::remove_XSS($url_array['description']);
$active = intval($url_array['active']); $active = isset($url_array['active']) ? intval($url_array['active']) : 0;
$url_id = $url_array['id']; $url_id = isset($url_array['id']) ? intval($url_array['id']) : 0;
$url_to_go = 'access_urls.php'; $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 //we can't change the status of the url with id=1
if ($url_id == 1) { if ($url_id == 1) {
$active = 1; $active = 1;

Loading…
Cancel
Save