Tasks: Fix php warnings with empty tasks list

remotes/origin/stable4
Bart Visscher 15 years ago
parent 9c5306d9b1
commit 5e4f28ea21
  1. 1
      apps/tasks/index.php
  2. 2
      apps/tasks/templates/part.details.php

@ -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…
Cancel
Save