diff --git a/phpgwapi/inc/class.db_pgsql.inc.php b/phpgwapi/inc/class.db_pgsql.inc.php index 319bc4d534..9f082d922c 100644 --- a/phpgwapi/inc/class.db_pgsql.inc.php +++ b/phpgwapi/inc/class.db_pgsql.inc.php @@ -573,18 +573,12 @@ function _fixbytea() { - foreach($this->_byteaArray as $k => $v) + foreach($this->_byteaArray as $v) { - $this->Record[$k] = $this->_bytea_decode($this->Record[$k]); - } - foreach($this->_byteaArray as $k => $v) - { - if (!isset($this->Record[$v])) + if ($v) { - $this->Record = false; - return; + $this->Record[$v] = $this->_bytea_decode($this->Record[$v]); } - $this->Record[$v] = $this->_bytea_decode($this->fields[$v]); } }