projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dfc8fb
)
Prevents warnings.
author
Stéphane Jacob
<sj@m4x.org>
Fri, 15 Oct 2010 12:32:10 +0000
(14:32 +0200)
committer
Stéphane Jacob
<sj@m4x.org>
Fri, 15 Oct 2010 12:32:10 +0000
(14:32 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
templates/profile/grades.js.tpl
patch
|
blob
|
blame
|
history
diff --git
a/templates/profile/grades.js.tpl
b/templates/profile/grades.js.tpl
index
4ab0ca7
..
ab575cb
100644
(file)
--- a/
templates/profile/grades.js.tpl
+++ b/
templates/profile/grades.js.tpl
@@
-25,7
+25,7
@@
names = new Array();
{foreach from=$medal_list key=type item=list}
{foreach from=$list item=m}
names[{$m.id}] = "{$m.text|regex_replace:"/\r?\n/":"\\n"}";
- {if $grades[$m.id]|@count}
+ {if
t($grades[$m.id]) &&
$grades[$m.id]|@count}
subgrades[{$m.id}] = new Array({$grades[$m.id]|@count});
{foreach from=$grades[$m.id] item=g}
subgrades[{$m.id}][{$g.gid-1}] = [{$g.gid},"{$g.text|regex_replace:"/\r?\n/":"\\n"}"];