Commit 17ce21bb40613a2ccd75585c0355e3a272ddd825

Authored by Michael Joseph
1 parent 06d21977

set checked out user id if its not set


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1436 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 3 additions and 0 deletions
sync/pathSync.php
... ... @@ -32,6 +32,9 @@ echo "<br>";
32 32 for ($i = 0; $i < count($aDocuments); $i++) {
33 33 $oDocument = $aDocuments[$i];
34 34 echo "Updating document: " . $oDocument->getName() . "<br>";
  35 + if ($oDocument->getCheckedOutUserID() == "") {
  36 + $oDocument->setCheckedOutUserID(-1);
  37 + }
35 38 $oDocument->update(true);
36 39 }
37 40  
... ...