mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
fix indenting of lines
This commit is contained in:
parent
004af591a9
commit
897f6ce64b
|
@ -2096,15 +2096,15 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
$this->_dms->lasterror = '';
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
/* Make sure the version exists */
|
||||
$queryStr = "SELECT * FROM `tblDocumentContent` WHERE `document` = " . $this->getID() . " AND `version` = " . $version->getVersion();
|
||||
/* Make sure the version exists */
|
||||
$queryStr = "SELECT * FROM `tblDocumentContent` WHERE `document` = " . $this->getID() . " AND `version` = " . $version->getVersion();
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$resArr)
|
||||
return false;
|
||||
if (count($resArr)==0)
|
||||
return false;
|
||||
|
||||
/* Make sure this is not the last version */
|
||||
/* Make sure this is not the last version */
|
||||
$queryStr = "SELECT * FROM `tblDocumentContent` WHERE `document` = " . $this->getID();
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$resArr)
|
||||
|
|
Loading…
Reference in New Issue
Block a user