more on the bytea-thing ... sometimes less is more ...

This commit is contained in:
Carsten Wolff 2004-03-13 17:57:20 +00:00
parent c863808815
commit a72cb3b1c8

View File

@ -573,18 +573,12 @@
function _fixbytea() function _fixbytea()
{ {
foreach($this->_byteaArray as $k => $v) foreach($this->_byteaArray as $v)
{ {
$this->Record[$k] = $this->_bytea_decode($this->Record[$k]); if ($v)
}
foreach($this->_byteaArray as $k => $v)
{
if (!isset($this->Record[$v]))
{ {
$this->Record = false; $this->Record[$v] = $this->_bytea_decode($this->Record[$v]);
return;
} }
$this->Record[$v] = $this->_bytea_decode($this->fields[$v]);
} }
} }