From 7a683b695a297794bf86b063ebf2e77835f334d0 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 7 Sep 2008 15:59:52 +0000 Subject: Series: Fixed a few errors [15] Refs #53 --- series/core/trunk/admin/addsub.php | 4 ++-- series/core/trunk/includes/instadisc.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'series') diff --git a/series/core/trunk/admin/addsub.php b/series/core/trunk/admin/addsub.php index 26a8109..f462d3f 100644 --- a/series/core/trunk/admin/addsub.php +++ b/series/core/trunk/admin/addsub.php @@ -77,8 +77,8 @@ function showForm($id, $title, $url, $category, $password, $errors) $template->add('ID_ERR', ifErrors($errors, 'id')); $template->add('TITLE_ERR', ifErrors($errors, 'title')); $template->add('URL_ERR', ifErrors($errors, 'url')); - $template->add('CATEGORY_ERR', ifErrors($category, 'url')); - $template->add('PASSWORD_ERR', ifErrors($password, 'url')); + $template->add('CATEGORY_ERR', ifErrors($errors, 'url')); + $template->add('PASSWORD_ERR', ifErrors($errors, 'url')); doErrors($template, $errors, 'id'); doErrors($template, $errors, 'title'); diff --git a/series/core/trunk/includes/instadisc.php b/series/core/trunk/includes/instadisc.php index 6cf4657..dd879c6 100644 --- a/series/core/trunk/includes/instadisc.php +++ b/series/core/trunk/includes/instadisc.php @@ -65,7 +65,7 @@ function instaDisc_changePassword($password) function instaDisc_addSubscription($id, $title, $url, $category, $password = '') { - $inssub = "INSERT INTO subscriptions (identity, title, url, category, password) VALUES (\"" . mysql_real_escape_string($id) . "\",\"" . mysql_real_escape_string($title) . "\",\"" . mysql_real_escape_string($url) . "\",\"" . mysql_real_escape_string($category) . "\",\"" . mysql_real_escape_string(($password == '' ? '' : md5($password))) . "\")"; + $inssub = "INSERT INTO subscriptions (identity, title, url, category, password, personal) VALUES (\"" . mysql_real_escape_string($id) . "\",\"" . mysql_real_escape_string($title) . "\",\"" . mysql_real_escape_string($url) . "\",\"" . mysql_real_escape_string($category) . "\",\"" . mysql_real_escape_string(($password == '' ? '' : md5($password))) . "\",\"false\")"; $inssub2 = mysql_query($inssub); } -- cgit 1.4.1