fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [17427] notices


From: sigurdne
Subject: [Fmsystem-commits] [17427] notices
Date: Mon, 11 Dec 2017 11:18:23 -0500 (EST)

Revision: 17427
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=17427
Author:   sigurdne
Date:     2017-12-11 11:18:23 -0500 (Mon, 11 Dec 2017)
Log Message:
-----------
notices

Modified Paths:
--------------
    trunk/phpgwapi/inc/class.custom_fields.inc.php
    trunk/phpgwapi/inc/class.db.inc.php

Modified: trunk/phpgwapi/inc/class.custom_fields.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.custom_fields.inc.php      2017-12-11 09:06:35 UTC 
(rev 17426)
+++ trunk/phpgwapi/inc/class.custom_fields.inc.php      2017-12-11 16:18:23 UTC 
(rev 17427)
@@ -378,7 +378,7 @@
                                        . " WHERE location_id 
='{$values['location_id']}'";
                                $this->_db->query($sql, __LINE__, __FILE__);
                                $this->_db->next_record();
-                               $values['id']   = $this->_db->f('current_id') + 
1;              
+                               $values['id']   = 
(int)$this->_db->f('current_id') + 1;         
 
                                $sql = 'SELECT MAX(attrib_sort) AS max_sort'
                                        . ' FROM phpgw_cust_attribute '
@@ -385,7 +385,7 @@
                                        . " WHERE location_id 
='{$values['location_id']}' AND group_id = {$values['group_id']}";
                                $this->_db->query($sql, __LINE__, __FILE__);
                                $this->_db->next_record();
-                               $values['attrib_sort']  = 
$this->_db->f('max_sort') + 1;
+                               $values['attrib_sort']  = 
(int)$this->_db->f('max_sort') + 1;
                        
                                $cols = implode(', ', array_keys($values));
                                $vals = $this->_db->validate_insert($values);

Modified: trunk/phpgwapi/inc/class.db.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.db.inc.php 2017-12-11 09:06:35 UTC (rev 17426)
+++ trunk/phpgwapi/inc/class.db.inc.php 2017-12-11 16:18:23 UTC (rev 17427)
@@ -749,7 +749,7 @@
 
                        $this->query("SELECT max(id) as maximum FROM $table 
$where",__LINE__,__FILE__);
                        $this->next_record();
-                       $next_id = $this->f('maximum')+1;
+                       $next_id = (int)$this->f('maximum')+1;
                        return $next_id;
                }
 




reply via email to

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