From 06da98e3ed3fb517c338d8d4f7d7d55a5afcaa56 Mon Sep 17 00:00:00 2001 From: clench Date: Fri, 5 Feb 2010 05:00:04 +0000 Subject: [PATCH] #18676030 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7278 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/db/DBFirebird.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/db/DBFirebird.class.php b/classes/db/DBFirebird.class.php index e0cb72d75..8b8d24f5c 100644 --- a/classes/db/DBFirebird.class.php +++ b/classes/db/DBFirebird.class.php @@ -317,7 +317,7 @@ /** * @brief 결과를 fetch **/ - function _fetch($result, $output) { + function _fetch($result, $output = null) { if(!$this->isConnected() || $this->isError() || !$result) return; while($tmp = ibase_fetch_object($result)) { @@ -340,7 +340,7 @@ } } - if($type == "text" || $type == "bigtext") { + if(($type == "text" || $type == "bigtext") && $tmp->{$key}) { $blob_data = ibase_blob_info($tmp->{$key}); $blob_hndl = ibase_blob_open($tmp->{$key}); $tmp->{$key} = ibase_blob_get($blob_hndl, $blob_data[0]); @@ -1007,7 +1007,7 @@ } } - if($type == "text" || $type == "bigtext") { + if(($type == "text" || $type == "bigtext") && $tmp->{$key}) { $blob_data = ibase_blob_info($tmp->{$key}); $blob_hndl = ibase_blob_open($tmp->{$key}); $tmp->{$key} = ibase_blob_get($blob_hndl, $blob_data[0]);