Commit a8ca04c65ea35d63f42ce46bb21cb8a9b5383ab5
1 parent
504b561c
Fixed sql error
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1314 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
4 additions
and
3 deletions
lib/documentmanagement/Document.inc
| ... | ... | @@ -824,9 +824,9 @@ class Document { |
| 824 | 824 | //the current step is the first step |
| 825 | 825 | //reset all steps and email the creator |
| 826 | 826 | Document::resetDocumentCollaborationSteps($iDocumentID); |
| 827 | - $oDocument = Document::get($iDocumentID); | |
| 827 | + $oDocument = Document::get($iDocumentID); | |
| 828 | + $oUser = User::get($oDocument->getCreatorID()); | |
| 828 | 829 | if ($oUser->getEmailNotification()) { |
| 829 | - $oUser = User::get($oDocument->getCreatorID()); | |
| 830 | 830 | $oCurrentUser = User::get($_SESSION["userID"]); |
| 831 | 831 | |
| 832 | 832 | $sBody = $oUser->getUserName() . ", the document, '<a href=\"https://" . $_SERVER["SERVER_NAME"] . "$default->rootUrl/control.php?action=viewDocument&fDocumentID=" . $this->iId . "\">" . $oDocument->getName() . "</a>' " . |
| ... | ... | @@ -901,7 +901,8 @@ class Document { |
| 901 | 901 | $sQuery = "SELECT WS.web_master_id " . |
| 902 | 902 | "FROM $default->owl_web_sites_table AS WS INNER JOIN $default->owl_web_documents_table AS WD ON WS.id = WD.web_site_id " . |
| 903 | 903 | "WHERE WD.document_id = $iDocumentID"; |
| 904 | - $sql->$default->db; | |
| 904 | + | |
| 905 | + $sql = $default->db; | |
| 905 | 906 | $sql->query($sQuery); |
| 906 | 907 | if ($sql->next_record()) { |
| 907 | 908 | $oUser = User::get($sql->f("web_master_id")); | ... | ... |