diff options
Diffstat (limited to 'nutrient_chooser.php')
| -rw-r--r-- | nutrient_chooser.php | 4 |
1 files 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') |
