[svn r11987] Fix a bug with the links on home page for the second time

skala
Julian Prud'homme 19 years ago
parent 0b43126a1d
commit 09d92cdb69
  1. 5
      main/link/linkfunctions.php

@ -66,7 +66,7 @@ function addlinkcategory($type)
$urllink = $_POST['urllink']; $urllink = $_POST['urllink'];
$description = $_POST['description']; $description = $_POST['description'];
$selectcategory = $_POST['selectcategory']; $selectcategory = $_POST['selectcategory'];
if ($_POST['onhomepage'] = '') if ($_POST['onhomepage'] == '')
{ {
$onhomepage = 0; $onhomepage = 0;
} }
@ -231,6 +231,7 @@ function editlinkcategory($type)
global $selectcategory; global $selectcategory;
global $description; global $description;
global $category_title; global $category_title;
global $onhomepage;
$tbl_link = Database :: get_course_table(TABLE_LINK); $tbl_link = Database :: get_course_table(TABLE_LINK);
$tbl_categories = Database :: get_course_table(TABLE_LINK_CATEGORY); $tbl_categories = Database :: get_course_table(TABLE_LINK_CATEGORY);
@ -254,7 +255,7 @@ function editlinkcategory($type)
// this is used to put the modified info of the link-form into the database // this is used to put the modified info of the link-form into the database
if ($_POST['submitLink']) if ($_POST['submitLink'])
{ {
if ($_POST['onhomepage'] = '') if ($_POST['onhomepage'] == '')
{ {
$onhomepage = 0; $onhomepage = 0;
} }

Loading…
Cancel
Save