Skip to content
Snippets Groups Projects
Commit f9af0ef7 authored by Georg Ehrke's avatar Georg Ehrke
Browse files

fix another ui bug of calendar

parent 92a11011
No related branches found
No related tags found
No related merge requests found
...@@ -19,12 +19,14 @@ ...@@ -19,12 +19,14 @@
<th width="75px"><?php echo $l->t("Category");?>:</th> <th width="75px"><?php echo $l->t("Category");?>:</th>
<td> <td>
<?php <?php
if(count($_['categories']) == 0){ if(count($_['categories']) == 0 || $_['categories'] == ''){
echo $l->t('No categories selected'); echo $l->t('No categories selected');
}else{ }else{
echo '<select id="category" name="categories[]" multiple="multiple" title="' . $l->t("Select category") . '">'; echo '<ul>';
echo OCP\html_select_options($_['categories'], $_['categories'], array('combine'=>true)); foreach($_['categories'] as $categorie){
echo '</select>'; echo '<li>' . $categorie . '</li>';
}
echo '</ul>';
} }
?> ?>
</td> </td>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment