From a8ca04c65ea35d63f42ce46bb21cb8a9b5383ab5 Mon Sep 17 00:00:00 2001 From: rob Date: Tue, 4 Mar 2003 09:08:38 +0000 Subject: [PATCH] Fixed sql error --- lib/documentmanagement/Document.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/documentmanagement/Document.inc b/lib/documentmanagement/Document.inc index 4d5745a..f5a9ae1 100644 --- a/lib/documentmanagement/Document.inc +++ b/lib/documentmanagement/Document.inc @@ -824,9 +824,9 @@ class Document { //the current step is the first step //reset all steps and email the creator Document::resetDocumentCollaborationSteps($iDocumentID); - $oDocument = Document::get($iDocumentID); + $oDocument = Document::get($iDocumentID); + $oUser = User::get($oDocument->getCreatorID()); if ($oUser->getEmailNotification()) { - $oUser = User::get($oDocument->getCreatorID()); $oCurrentUser = User::get($_SESSION["userID"]); $sBody = $oUser->getUserName() . ", the document, 'rootUrl/control.php?action=viewDocument&fDocumentID=" . $this->iId . "\">" . $oDocument->getName() . "' " . @@ -901,7 +901,8 @@ class Document { $sQuery = "SELECT WS.web_master_id " . "FROM $default->owl_web_sites_table AS WS INNER JOIN $default->owl_web_documents_table AS WD ON WS.id = WD.web_site_id " . "WHERE WD.document_id = $iDocumentID"; - $sql->$default->db; + + $sql = $default->db; $sql->query($sQuery); if ($sql->next_record()) { $oUser = User::get($sql->f("web_master_id")); -- libgit2 0.21.4