Tasks: Fix php warnings with empty tasks list

This commit is contained in:
Bart Visscher 2011-12-02 21:33:23 +01:00
parent 9c5306d9b1
commit 5e4f28ea21
2 changed files with 2 additions and 1 deletions

View file

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

View file

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