mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 12:11:19 +00:00
- fixed nasty bug in getDir()
This commit is contained in:
parent
c54512cb44
commit
32e52884b7
|
@ -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."/";
|
||||
|
|
Loading…
Reference in New Issue
Block a user