From ff1132f565d0217473c0c714a5509df6b1a40535 Mon Sep 17 00:00:00 2001 From: Olivier Berten Date: Sun, 24 Mar 2013 15:29:43 +0100 Subject: [PATCH] Minor --- chant_edit.php | 2 +- missing.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chant_edit.php b/chant_edit.php index 62f75f1..1037b1c 100644 --- a/chant_edit.php +++ b/chant_edit.php @@ -261,7 +261,7 @@ if(!$logged_in) { $mysqli->query($sql) or die('Erreur SQL !
'.$sql.'
'.$mysqli->error); $id = $mysqli->insert_id; foreach(array('version','office-part','mode','mode_var','commentary','initial','transcriber','gabc','gabc_verses','tex_verses') as $k) { - if($mypost[$k] > '') { + if($mypost[$k] > '' && $mypost[$k] != "(c4)") { $sql = 'UPDATE '.db('chants').' SET `'.$k.'` = "'.$mysqli->real_escape_string($mypost[$k]).'" WHERE `id` = '.$id; $mysqli->query($sql) or die('Erreur SQL !
'.$sql.'
'.$mysqli->error); } diff --git a/missing.php b/missing.php index 1936400..4ebfe99 100644 --- a/missing.php +++ b/missing.php @@ -1,7 +1,7 @@ $title\n";