fix another ui bug of calendar

This commit is contained in:
Georg Ehrke 2012-06-13 22:20:43 +02:00
parent 92a11011b1
commit f9af0ef703
1 changed files with 6 additions and 4 deletions

View File

@ -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>