From abae1ca3b0da23d572e7f437c4b3c1b2c1adb237 Mon Sep 17 00:00:00 2001 From: ucorina Date: Wed, 12 Oct 2011 18:30:32 +0000 Subject: [PATCH] Issue 373: Patch for /branches/1.5.0/modules/document/document.item.php git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9620 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/document/document.item.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/document/document.item.php b/modules/document/document.item.php index 92b3608aa..2abef10b5 100644 --- a/modules/document/document.item.php +++ b/modules/document/document.item.php @@ -38,7 +38,8 @@ $args->document_srl = $this->document_srl; $output = executeQuery('document.getDocument', $args, $this->columnList); //insert in cache - if($oCacheHandler->isSupport()) $oCacheHandler->put($cache_key,$output); + if($output->data->document_srl && $oCacheHandler->isSupport()) + $oCacheHandler->put($cache_key,$output); } $this->setAttribute($output->data,$load_extra_vars); }