From 5e4f28ea21f32086e28740c6689d7000c1dfd488 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Fri, 2 Dec 2011 21:33:23 +0100 Subject: [PATCH] Tasks: Fix php warnings with empty tasks list --- apps/tasks/index.php | 1 + apps/tasks/templates/part.details.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/tasks/index.php b/apps/tasks/index.php index a653326338..d2624a1cf0 100644 --- a/apps/tasks/index.php +++ b/apps/tasks/index.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); diff --git a/apps/tasks/templates/part.details.php b/apps/tasks/templates/part.details.php index a6561d97be..89636b6e76 100644 --- a/apps/tasks/templates/part.details.php +++ b/apps/tasks/templates/part.details.php @@ -38,5 +38,5 @@ endif; ?> - +