fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [15322] booking: fix delete


From: sigurdne
Subject: [Fmsystem-commits] [15322] booking: fix delete
Date: Thu, 23 Jun 2016 09:43:09 +0000 (UTC)

Revision: 15322
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15322
Author:   sigurdne
Date:     2016-06-23 09:43:09 +0000 (Thu, 23 Jun 2016)
Log Message:
-----------
booking: fix delete

Modified Paths:
--------------
    trunk/booking/inc/class.soallocation.inc.php

Modified: trunk/booking/inc/class.soallocation.inc.php
===================================================================
--- trunk/booking/inc/class.soallocation.inc.php        2016-06-23 08:41:31 UTC 
(rev 15321)
+++ trunk/booking/inc/class.soallocation.inc.php        2016-06-23 09:43:09 UTC 
(rev 15322)
@@ -270,6 +270,7 @@
 
                function check_for_booking( $id )
                {
+                       $id = (int) $id;
                        $sql = "SELECT id FROM bb_booking  WHERE allocation_id 
= ($id)";
 
                        $this->db->limit_query($sql, 0, __LINE__, __FILE__, 1);
@@ -282,6 +283,7 @@
 
                public function delete_allocation( $id )
                {
+                       $id = (int) $id;
                        $db = $this->db;
                        $db->transaction_begin();
                        $table_name = $this->table_name . '_resource';




reply via email to

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