Fix bug and esthetic : the var. dep can be empty

This commit is contained in:
Dany De Bontridder 2017-07-11 17:05:41 +02:00
parent 1e56e7fd34
commit cb97fb03be
2 changed files with 2 additions and 1 deletions

View file

@ -58,6 +58,7 @@ $a_tab[$call_tab]='tabs_selected';
<li class="<?php echo $a_tab['profile_gestion_div']?>"><a href="javascript:void(0)" style="" onclick="unselect_other_tab(this.parentNode.parentNode);this.parentNode.className='tabs_selected';profile_show('profile_gestion_div')"><?php echo _('Action Gestion')?> </a></li>
<li class="<?php echo $a_tab['profile_repo_div']?>"><a href="javascript:void(0)" onclick="unselect_other_tab(this.parentNode.parentNode);this.parentNode.className='tabs_selected';profile_show('profile_repo_div')"><?php echo _('Dépôts')?></a>&nbsp;
</ul>
<div style="clear: both"></div>
<?php endif; ?>
<?php

View file

@ -426,7 +426,7 @@ if (isset($_POST['delete_profil']))
<?php
}
$dep=$http->post("dep");
$dep=$http->post("dep","string","");
?>
<script>
var selected_menu="<?php echo $dep;?>";