projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e5cf9f
)
Do not display warning about awaiting validation for non validated medals.
author
Stéphane Jacob
<sj@m4x.org>
Sun, 25 Sep 2011 21:24:22 +0000
(23:24 +0200)
committer
Stéphane Jacob
<sj@m4x.org>
Sun, 25 Sep 2011 22:24:28 +0000
(
00:24
+0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/profile.php
patch
|
blob
|
blame
|
history
diff --git
a/modules/profile.php
b/modules/profile.php
index
5988743
..
3e4795b
100644
(file)
--- 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)