mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-24 06:48:40 +01:00
oops, fix for the fix ... /me pulls brown paperbag over his head
This commit is contained in:
parent
02c1c5a545
commit
5889064b1f
@ -561,6 +561,7 @@
|
|||||||
// cache types for blob decode check in a class-member called "_byteaArray"
|
// cache types for blob decode check in a class-member called "_byteaArray"
|
||||||
function _init_bytea_array()
|
function _init_bytea_array()
|
||||||
{
|
{
|
||||||
|
unset($this->_byteaArray);
|
||||||
for ($i=0, $max = @pg_numfields($this->Query_ID); $i < $max; $i++)
|
for ($i=0, $max = @pg_numfields($this->Query_ID); $i < $max; $i++)
|
||||||
{
|
{
|
||||||
if (@pg_fieldtype($this->Query_ID, $i) == 'bytea')
|
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
|
// fix data from bytea-fields, wich are not fully supported by PHP itself
|
||||||
function _bytea_decode($bytea)
|
function _bytea_decode($bytea)
|
||||||
{ echo "I'm called because of $bytea <br>";
|
{
|
||||||
eval('$realbytea="'.str_replace(array('"','$'),array('\"','\$'),$bytea).'";');
|
eval('$realbytea="'.str_replace(array('"','$'),array('\"','\$'),$bytea).'";');
|
||||||
return $realbytea;
|
return $realbytea;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user