Commit 1929e7d0 authored by ueli heuer's avatar ueli heuer 👾
Browse files

Fix link_save, so a new link can be created again.

parent c7976c5f
......@@ -59,7 +59,8 @@ if ( $link_name ) {
$link_id = $link_id_;
}
}
if ( $link_id ) {
if ( $link_id > 0 ) {
list ($link_id,$cid,$device_id,$linkname,$linkord,$linktype,$allow_access,
$link_speedin,$link_speedout,$linkstart,$linkstop) =
DVG_link::get_info($link_id);
......@@ -89,8 +90,7 @@ $BBCS = DVG_module::load('BBCS', array('host',$host_id));
$RADIUS = DVG_module::load('RADIUS',array('link',$link_id));
# array( array('link',$link_id),
# array('host',$host_id)),$BBCS);
#exit;
#$RADIUS=1;
$refresh = null;
switch ($action) {
......@@ -1030,7 +1030,7 @@ function save_link($link_id) # {{{
$link_type = DVG_input::check(DVG_input::CHECK_UNSIGNED_INTEGER,'link_type',
DVG_input::SRC_POST);
$link_ord = DVG_input::check(DVG_input::CHECK_UNSIGNED_INTEGER,'link_ord',
DVG_input::SRC_POST);
DVG_input::SRC_POST,0);
$start_date = DVG_input::check(DVG_input::CHECK_DATE,'start_date',
DVG_input::SRC_POST);
$stopdate = DVG_input::check(DVG_input::CHECK_DATE,'stop_date',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment