Tasks: Fix php warnings with empty tasks list
This commit is contained in:
parent
9c5306d9b1
commit
5e4f28ea21
2 changed files with 2 additions and 1 deletions
|
@ -34,6 +34,7 @@ foreach( $calendars as $calendar ){
|
|||
}
|
||||
}
|
||||
|
||||
$details = null;
|
||||
if( !is_null($id) || count($tasks)){
|
||||
if(is_null($id)) $id = $tasks[0]['id'];
|
||||
$task = OC_Calendar_Object::find($id);
|
||||
|
|
|
@ -38,5 +38,5 @@ endif; ?>
|
|||
<input type="button" id="tasks_edit" value="<?php echo $l->t('Edit');?>">
|
||||
</form>
|
||||
<?php else: ?>
|
||||
<?php var_dump($_['details']); ?>
|
||||
<?php //var_dump($_['details']); ?>
|
||||
<?php endif ?>
|
||||
|
|
Loading…
Reference in a new issue