From 961ce9faa675c5af89b4dc059234d04b2b02fcf6 Mon Sep 17 00:00:00 2001 From: Nathan Kinkade Date: Sat, 5 Apr 2008 06:24:01 +0000 Subject: Corrected misnamed variable ... missing an s in array nutrients --- nutrient_chooser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nutrient_chooser.php b/nutrient_chooser.php index 419afa6..fb1f1da 100644 --- a/nutrient_chooser.php +++ b/nutrient_chooser.php @@ -36,8 +36,8 @@ if ( isset($_POST['setNutrients']) ) { if ( $db->_error ) { $status = "false"; } else { - if ( ! empty($_POST['nutrient']) ) { - foreach ( $_POST['nutrient'] as $nutrient ) { + if ( ! empty($_POST['nutrients']) ) { + foreach ( $_POST['nutrients'] as $nutrient ) { $sql = sprintf (" INSERT INTO userNutrients(user, nutrient) VALUES ('%s','%s') -- cgit v1.2.3