summaryrefslogtreecommitdiffstats
path: root/apps/tasks/index.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2011-12-02 21:33:23 +0100
committerBart Visscher <bartv@thisnet.nl>2011-12-02 21:33:30 +0100
commit5e4f28ea21f32086e28740c6689d7000c1dfd488 (patch)
tree366f87885fe74454a18c47889c2f6eb8ae0c01cf /apps/tasks/index.php
parent9c5306d9b189bed0ecfd716b1d0b3a5ee4edc02e (diff)
downloadnextcloud-server-5e4f28ea21f32086e28740c6689d7000c1dfd488.tar.gz
nextcloud-server-5e4f28ea21f32086e28740c6689d7000c1dfd488.zip
Tasks: Fix php warnings with empty tasks list
Diffstat (limited to 'apps/tasks/index.php')
-rw-r--r--apps/tasks/index.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/tasks/index.php b/apps/tasks/index.php
index a653326338b..d2624a1cf01 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);