From 32e52884b7aaf0cd4fec970df763e83d557c8fd6 Mon Sep 17 00:00:00 2001 From: steinm Date: Thu, 22 Mar 2012 07:03:10 +0000 Subject: [PATCH] - fixed nasty bug in getDir() --- LetoDMS_Core/Core/inc.ClassDocument.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LetoDMS_Core/Core/inc.ClassDocument.php b/LetoDMS_Core/Core/inc.ClassDocument.php index a56c5d450..f47685117 100644 --- a/LetoDMS_Core/Core/inc.ClassDocument.php +++ b/LetoDMS_Core/Core/inc.ClassDocument.php @@ -158,8 +158,8 @@ class LetoDMS_Core_Document { /* {{{ */ * @return string directory of document */ function getDir() { /* {{{ */ - if($this->_document->_dms->maxDirID) { - $dirid = (int) (($this->_id-1) / $this->_document->_dms->maxDirID) + 1; + if($this->_dms->maxDirID) { + $dirid = (int) (($this->_id-1) / $this->_dms->maxDirID) + 1; return $dirid."/".$this->_id."/"; } else { return $this->_id."/";