From 68ed2d843940b1c8d5dc686817d949d200826a10 Mon Sep 17 00:00:00 2001 From: Conrad Vermeulen Date: Tue, 25 Mar 2008 08:36:44 +0000 Subject: [PATCH] WSA-114 "Uploading a document via hot folders, not specifying the Date Created and Date Modified the server inserts its own random date." Fixed. --- ktapi/KTAPIDocument.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ktapi/KTAPIDocument.inc.php b/ktapi/KTAPIDocument.inc.php index 56e26a7..d3d17ae 100644 --- a/ktapi/KTAPIDocument.inc.php +++ b/ktapi/KTAPIDocument.inc.php @@ -1159,10 +1159,10 @@ class KTAPI_Document extends KTAPI_FolderItem $indexContent = $value; break; case 'created_date': - $documents['created'] = $value; + if (!empty($value)) $documents['created'] = $value; break; case 'modified_date': - $documents['modified'] = $value; + if (!empty($value)) $documents['modified'] = $value; break; case 'is_immutable': $documents['immutable'] = in_array(strtolower($value), array('1','true','on','yes'))?'1':'0'; -- libgit2 0.21.4