fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [8070] fixed resource_schedule


From: Kjell Arne Espedal
Subject: [Fmsystem-commits] [8070] fixed resource_schedule
Date: Wed, 09 Nov 2011 13:15:39 +0000

Revision: 8070
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8070
Author:   kjell
Date:     2011-11-09 13:15:38 +0000 (Wed, 09 Nov 2011)
Log Message:
-----------
fixed resource_schedule

Modified Paths:
--------------
    branches/dev-thomasez/booking/inc/class.bobooking.inc.php

Modified: branches/dev-thomasez/booking/inc/class.bobooking.inc.php
===================================================================
--- branches/dev-thomasez/booking/inc/class.bobooking.inc.php   2011-11-09 
12:06:40 UTC (rev 8069)
+++ branches/dev-thomasez/booking/inc/class.bobooking.inc.php   2011-11-09 
13:15:38 UTC (rev 8070)
@@ -302,6 +302,17 @@
                        
                        $bookings = $this->_split_multi_day_bookings($bookings, 
$from, $to);
                        $results = build_schedule_table($bookings, 
array($resource));
+
+                       $delete = array ("time" => '23:59-00:00',"_from" => 
'23:59',"_to" => '00:00');
+
+                       foreach ($results as  $array) {
+                               if (array_diff($array, $delete) != array())
+                                       $filtered_result[] = array_diff($array, 
$delete);
+                       }
+                       
+                       return array('total_records'=>count($filtered_result), 
'results'=>$filtered_result);
+
+
                        return array('total_records'=>count($results), 
'results'=>$results);
                }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]