Commit 2e17f48a1942e41e9eaa7cf84b78cd48574a5d2a

Authored by michael
1 parent 6d38f706

(#3002) fixed unitID checking condition.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2728 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/createDependantDocumentUI.inc
... ... @@ -71,7 +71,7 @@ function getPage($iFolderID, $iDocumentID, $iUnitID, $iUserID, $sDocumentTitle,
71 71  
72 72 function getUserDropDown($iUnitID, $iUserID) {
73 73 global $default;
74   - if (!isset($iUnitID)) {
  74 + if (!$iUnitID) {
75 75 $iUnitID = -1;
76 76 }
77 77 $oPatternListBox = & new PatternListBox($default->users_table, "Name", "id", "fUserID", "GUL.unit_id = $iUnitID");
... ... @@ -88,7 +88,7 @@ function getUserDropDown($iUnitID, $iUserID) {
88 88  
89 89 function getUnitDropDown($iDocumentID, $iUnitID) {
90 90 global $default;
91   - if (!isset($iUnitID)) {
  91 + if (!$iUnitID) {
92 92 $iUnitID = -1;
93 93 }
94 94 $oPatternListBox = & new PatternListBox($default->units_table, "Name", "id", "fUnitID");
... ...