From 5889064b1f6e900724caa6b91126cde0cfc4ee98 Mon Sep 17 00:00:00 2001 From: Carsten Wolff Date: Thu, 11 Mar 2004 17:39:05 +0000 Subject: [PATCH] oops, fix for the fix ... /me pulls brown paperbag over his head --- phpgwapi/inc/class.db_pgsql.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.db_pgsql.inc.php b/phpgwapi/inc/class.db_pgsql.inc.php index 9ff3b9e31e..319bc4d534 100644 --- a/phpgwapi/inc/class.db_pgsql.inc.php +++ b/phpgwapi/inc/class.db_pgsql.inc.php @@ -561,6 +561,7 @@ // cache types for blob decode check in a class-member called "_byteaArray" function _init_bytea_array() { + unset($this->_byteaArray); for ($i=0, $max = @pg_numfields($this->Query_ID); $i < $max; $i++) { if (@pg_fieldtype($this->Query_ID, $i) == 'bytea') @@ -589,7 +590,7 @@ // fix data from bytea-fields, wich are not fully supported by PHP itself function _bytea_decode($bytea) - { echo "I'm called because of $bytea
"; + { eval('$realbytea="'.str_replace(array('"','$'),array('\"','\$'),$bytea).'";'); return $realbytea; }