From 4ddbffe4bb96b7081ca040f237539dcb7c568530 Mon Sep 17 00:00:00 2001 From: james Date: Tue, 5 Oct 2010 20:18:32 +0000 Subject: [PATCH] Oops, guess i should test before committing -- this fixes the syntax error, as well as allows more weird chars to be properly set and saved as division/category titles --- config/categories.php | 8 ++++---- config/divisions.php | 4 ++-- config/subdivisions.php | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config/categories.php b/config/categories.php index f063885b..23484669 100644 --- a/config/categories.php +++ b/config/categories.php @@ -49,7 +49,7 @@ mysql_query("UPDATE projectcategories SET ". "id='".intval($_POST['id'])."', ". "category='".mysql_real_escape_string($_POST['category'])."', ". - "category_shortform='".mysql_real_escape_string(($_POST['category_shortform'])."', ". + "category_shortform='".mysql_real_escape_string($_POST['category_shortform'])."', ". "mingrade='".intval($_POST['mingrade'])."', ". "maxgrade='".intval($_POST['maxgrade'])."' ". "WHERE id='".intval($_POST['saveid'])."'"); @@ -70,7 +70,7 @@ } else { mysql_query("INSERT INTO projectcategories (id,category,category_shortform,mingrade,maxgrade,conferences_id) VALUES ( ". - "'".intval($_POST['id']."', ". + "'".intval($_POST['id'])."', ". "'".mysql_real_escape_string($_POST['category'])."', ". "'".mysql_real_escape_string($_POST['category_shortform'])."', ". "'".intval($_POST['mingrade'])."', ". @@ -121,8 +121,8 @@ } echo ""; echo " id\">"; - echo " category\">"; - echo " category_shortform\">"; + echo " category)."\">"; + echo " category_shortform)."\">"; echo " mingrade\">"; echo " maxgrade\">"; echo " "; diff --git a/config/divisions.php b/config/divisions.php index 8d37c54b..23863f1d 100644 --- a/config/divisions.php +++ b/config/divisions.php @@ -146,8 +146,8 @@ if($_GET['action']=="edit" || $_GET['action']=="new") { } echo ""; echo " id\" />"; - echo " division\" />"; - echo " division_shortform\" />"; + echo " division)."\" />"; + echo " division_shortform)."\" />"; //###### Feature Specific - filtering divisions by category if($config['filterdivisionbycategory']=="yes"){ diff --git a/config/subdivisions.php b/config/subdivisions.php index 049d2dbe..e5b8a54e 100644 --- a/config/subdivisions.php +++ b/config/subdivisions.php @@ -126,7 +126,7 @@ echo ""; echo ""; echo " id\">"; - echo " subdivision\">"; + echo " subdivision)."\">"; echo " "; echo ""; }