Commit 403a1513 authored by Francesco Iannuzzelli's avatar Francesco Iannuzzelli

Fix gallery variables

parent e25c1520
......@@ -37,7 +37,7 @@ $ah->CheckAuth(false);
$hh = new HtmlHelper();
$id_group = $_GET['id_group'];
$id_group = (int)$_GET['id_group'];
$page_title = $hh->tr->Translate("placing");
include_once(SERVER_ROOT."/../admin/include/head.php");
?>
......
......@@ -359,13 +359,13 @@ class HtmlHelper
foreach($children as $child)
{
$group_name = $this->th->TextReplaceForJavascript($child['name']);
$group_description = $this->groups->gh->th->description[$child[id_group]];
$group_description = $this->groups->gh->th->description[$child['id_group']];
$stree .= "<li>";
$stree .= ($child[visible]==0)? "(inv.) " : "";
$stree .= ($child['visible']==0)? "(inv.) " : "";
if ($child['id_group']==$id_first_group)
$stree .= "<b>$child[name]</b>";
$stree .= "<b>{$child['name']}</b>";
else
$stree .= "<a href=\"#\" onClick=\"set_group('".$child['id_group']."','$group_name');\">$child[name]</a>\n";
$stree .= "<a href=\"#\" onClick=\"set_group('".$child['id_group']."','$group_name');\">{$child['name']}</a>\n";
$stree .= "<div>$group_description</div></li>\n";
$stree .= $this->GroupsTree2Recurse($child['id_group'],$id_first_group);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment