[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [16593] isset vs empty
From: |
sigurdne |
Subject: |
[Fmsystem-commits] [16593] isset vs empty |
Date: |
Tue, 18 Apr 2017 10:06:06 -0400 (EDT) |
Revision: 16593
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16593
Author: sigurdne
Date: 2017-04-18 10:06:06 -0400 (Tue, 18 Apr 2017)
Log Message:
-----------
isset vs empty
Modified Paths:
--------------
trunk/booking/inc/class.socommon.inc.php
trunk/phpgwapi/inc/class.socommon.inc.php
Modified: trunk/booking/inc/class.socommon.inc.php
===================================================================
--- trunk/booking/inc/class.socommon.inc.php 2017-04-18 14:05:43 UTC (rev
16592)
+++ trunk/booking/inc/class.socommon.inc.php 2017-04-18 14:06:06 UTC (rev
16593)
@@ -576,7 +576,7 @@
while
($this->db->next_record())
{
$id =
$this->_unmarshal($this->db->f($key, false), 'int');
-
if(!isset($results[$id_map[$id]][$field]))
+
if(empty($results[$id_map[$id]][$field]))
{
$results[$id_map[$id]][$field] = array();
}
@@ -607,7 +607,7 @@
while
($this->db->next_record())
{
$id =
$this->_unmarshal($this->db->f($key, false), 'int');
-
if(!isset($results[$id_map[$id]][$field]))
+
if(empty($results[$id_map[$id]][$field]))
{
$results[$id_map[$id]][$field] = array();
}
Modified: trunk/phpgwapi/inc/class.socommon.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.socommon.inc.php 2017-04-18 14:05:43 UTC (rev
16592)
+++ trunk/phpgwapi/inc/class.socommon.inc.php 2017-04-18 14:06:06 UTC (rev
16593)
@@ -304,7 +304,7 @@
while
($this->db->next_record())
{
$id =
$this->unmarshal($this->db->f($key, false), 'int');
-
if(!isset($results[$id_map[$id]][$field]))
+
if(empty($results[$id_map[$id]][$field]))
{
$results[$id_map[$id]][$field] = array();
}
@@ -335,7 +335,7 @@
while
($this->db->next_record())
{
$id =
$this->unmarshal($this->db->f($key, false), 'int');
-
if(!isset($results[$id_map[$id]][$field]))
+
if(empty($results[$id_map[$id]][$field]))
{
$results[$id_map[$id]][$field] = array();
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [16593] isset vs empty,
sigurdne <=