From 6a91429711d28f9640c4d105e01a65cab1ccb20b Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 22 Sep 2015 10:32:33 +0200 Subject: [PATCH] do not output timeline if no data is available --- views/bootstrap/class.Bootstrap.php | 2 ++ views/bootstrap/class.Timeline.php | 34 ++++++++++++++------------ views/bootstrap/class.ViewDocument.php | 32 ++++++++++++------------ 3 files changed, 37 insertions(+), 31 deletions(-) diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index 888549489..778fdb37f 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -2018,6 +2018,8 @@ mayscript> * @param object $document document */ protected function printTimeline($timeline, $height=300, $start='', $end='') { /* {{{ */ + if(!$timeline) + return; ?>