From 14eb5b03ded56db1cd5016c5e58bbb4772c99131 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Tue, 18 Oct 2011 13:40:44 +0200 Subject: some changes --- .../views/scripts/event/checkoverlapevents.phtml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'application/views/scripts/event/checkoverlapevents.phtml') diff --git a/application/views/scripts/event/checkoverlapevents.phtml b/application/views/scripts/event/checkoverlapevents.phtml index 5ce631b..6558e19 100644 --- a/application/views/scripts/event/checkoverlapevents.phtml +++ b/application/views/scripts/event/checkoverlapevents.phtml @@ -3,29 +3,32 @@ //print_r($this->overlaps); //$overlaps[] = array(); + + if(count($this->overlapswithrepeat) == 0) { - echo -1; + $output['withrepeat'] = -1; } else { - echo ''; // Echo contents of output, e.g. required values, such as title, date, etc. //echo json_encode($this->overlaps); } if(count($this->overlapswithoutrepeat) == 0) { - echo -1; + $output['withoutrepeat'] = -1; } else { - echo ''; // Echo contents of output, e.g. required values, such as title, date, etc. //echo json_encode($this->overlaps); } +echo json_encode($output); ?> \ No newline at end of file -- cgit v1.2.3-55-g7522