[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] [18604] add missing foreach
From: |
Dave Hall |
Subject: |
[Phpgroupware-cvs] [18604] add missing foreach |
Date: |
Sun, 08 Jun 2008 12:36:36 +0000 |
Revision: 18604
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=18604
Author: skwashd
Date: 2008-06-08 12:36:36 +0000 (Sun, 08 Jun 2008)
Log Message:
-----------
add missing foreach
Modified Paths:
--------------
trunk/phpgwapi/inc/class.db.inc.php
Modified: trunk/phpgwapi/inc/class.db.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.db.inc.php 2008-06-07 23:58:01 UTC (rev 18603)
+++ trunk/phpgwapi/inc/class.db.inc.php 2008-06-08 12:36:36 UTC (rev 18604)
@@ -548,8 +548,9 @@
}
$insert_value = array();
+ foreach ( $values as $value )
{
- if($value || $value === 0)
+ if ( $value || $value === 0)
{
if ( is_numeric($value) )
{
@@ -799,14 +800,17 @@
*/
public function table_names()
{
- if(!$this->adodb->IsConnected())
+ if ( !$this->adodb->IsConnected() )
{
$this->connect();
}
- if(!($return =& $this->adodb->MetaTables('TABLES')))
+
+ $return = $this->adodb->MetaTables('TABLES');
+ if ( !$return )
{
- $return = array();
+ return array();
}
+
return $return;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] [18604] add missing foreach,
Dave Hall <=