From 2df4879834d554904f1eccfd6efe5d906bdcea47 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Sun, 25 Sep 2011 23:24:22 +0200 Subject: [PATCH] Do not display warning about awaiting validation for non validated medals. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/profile.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/profile.php b/modules/profile.php index 5988743..3e4795b 100644 --- a/modules/profile.php +++ b/modules/profile.php @@ -426,8 +426,12 @@ class ProfileModule extends PLModule { pl_content_headers("text/html"); $page->changeTpl('profile/deco.medal.tpl', NO_SKIN); + $valid = XDB::fetchOneCell("SELECT NOT FIND_IN_SET('validation', flags) + FROM profile_medal_enum + WHERE id = {?}", + $id); $page->assign('id', $i); - $page->assign('medal', array('id' => $id, 'grade' => 0, 'valid' => 0)); + $page->assign('medal', array('id' => $id, 'grade' => 0, 'valid' => $valid)); } function handler_ajax_job($page, $id, $pid) -- 2.1.4