From 4aa85fcd62ffde8a54c8419e98aad1db057e9128 Mon Sep 17 00:00:00 2001 From: Vincent Zanotti Date: Sun, 18 May 2008 15:41:50 +0200 Subject: [PATCH] Fixes the AXLetter module (SQL field 'shortname' is now known as 'short_name'). Signed-off-by: Vincent Zanotti --- modules/axletter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/axletter.php b/modules/axletter.php index 67833e8..1efe115 100644 --- a/modules/axletter.php +++ b/modules/axletter.php @@ -134,7 +134,7 @@ class AXLetterModule extends PLModule . "que de chiffres, lettres et tirets"); Post::kill('valid'); } elseif ($shortname != Post::v('old_shortname')) { - $res = XDB::query("SELECT id FROM axletter WHERE shortname = {?}", $shortname); + $res = XDB::query("SELECT id FROM axletter WHERE short_name = {?}", $shortname); if ($res->numRows() && $res->fetchOneCell() != $id) { $page->trig("Le nom $shortname est déjà utilisé, merci d'en choisir un autre"); $shortname = Post::v('old_shortname'); @@ -154,7 +154,7 @@ class AXLetterModule extends PLModule case 'Confirmer': XDB::execute("REPLACE INTO axletter - SET id = {?}, shortname = {?}, subject = {?}, title = {?}, body = {?}, + SET id = {?}, short_name = {?}, subject = {?}, title = {?}, body = {?}, signature = {?}, promo_min = {?}, promo_max = {?}, echeance = {?}", $id, $shortname, $subject, $title, $body, $signature, $promo_min, $promo_max, $echeance); if (!$saved) { -- 2.1.4