fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [14403] bookingfrontend: corrected some phpgw::get_va


From: Sigurd Nes
Subject: [Fmsystem-commits] [14403] bookingfrontend: corrected some phpgw::get_var-inputs
Date: Wed, 18 Nov 2015 14:05:25 +0000

Revision: 14403
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14403
Author:   sigurdne
Date:     2015-11-18 14:05:24 +0000 (Wed, 18 Nov 2015)
Log Message:
-----------
bookingfrontend: corrected some phpgw::get_var-inputs

Modified Paths:
--------------
    branches/dev-syncromind/bookingfrontend/inc/class.uiallocation.inc.php
    branches/dev-syncromind/bookingfrontend/inc/class.uibooking.inc.php

Modified: branches/dev-syncromind/bookingfrontend/inc/class.uiallocation.inc.php
===================================================================
--- branches/dev-syncromind/bookingfrontend/inc/class.uiallocation.inc.php      
2015-11-18 13:47:01 UTC (rev 14402)
+++ branches/dev-syncromind/bookingfrontend/inc/class.uiallocation.inc.php      
2015-11-18 14:05:24 UTC (rev 14403)
@@ -126,8 +126,7 @@
                                $allocation = $this->bo->read_single($id);
                 $organization = 
$this->organization_bo->read_single($allocation['organization_id']);
                        $season = 
$this->season_bo->read_single($allocation['season_id']);
-                               $step = phpgw::get_var('step', 'string', 
'POST');
-                       if (! isset($step)) $step = 1;
+                               $step = phpgw::get_var('step', 'string', 
'REQUEST', 1);
                    $errors = array();
                                $invalid_dates = array();
                                $valid_dates = array();

Modified: branches/dev-syncromind/bookingfrontend/inc/class.uibooking.inc.php
===================================================================
--- branches/dev-syncromind/bookingfrontend/inc/class.uibooking.inc.php 
2015-11-18 13:47:01 UTC (rev 14402)
+++ branches/dev-syncromind/bookingfrontend/inc/class.uibooking.inc.php 
2015-11-18 14:05:24 UTC (rev 14403)
@@ -104,8 +104,7 @@
                        $time_from = explode(" ",phpgw::get_var('from_', 
'string'));
                        $time_to = explode(" ",phpgw::get_var('to_', 'string'));
 
-                       $step = phpgw::get_var('step', 'string', 'POST');
-                       if (! isset($step)) $step = 1;
+                       $step = phpgw::get_var('step', 'string', 'REQUEST', 1);
                        $invalid_dates = array();
                        $valid_dates = array();
 
@@ -363,7 +362,7 @@
                        $errors = array();
                        $update_count = 0;
                        $today = getdate();
-                       $step = intval(phpgw::get_var('step', 'int'));
+                       $step = phpgw::get_var('step', 'int');
 
                        if($_SERVER['REQUEST_METHOD'] == 'POST')
                        {




reply via email to

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