From 05877dcab4aaf614bac175a32b35e394ee9ad980 Mon Sep 17 00:00:00 2001 From: Michael Joseph Date: Wed, 5 Mar 2003 13:37:53 +0000 Subject: [PATCH] fixed pending documents bug- displaying more than one alert at a time now --- presentation/lookAndFeel/knowledgeTree/dashboardBL.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/presentation/lookAndFeel/knowledgeTree/dashboardBL.php b/presentation/lookAndFeel/knowledgeTree/dashboardBL.php index 367815d..b66fb91 100644 --- a/presentation/lookAndFeel/knowledgeTree/dashboardBL.php +++ b/presentation/lookAndFeel/knowledgeTree/dashboardBL.php @@ -35,9 +35,10 @@ function getPendingCollaborationDocuments($iUserID) { global $default; $sQuery = "SELECT document_id FROM $default->owl_folders_user_roles_table WHERE active=1 AND user_id=" . $_SESSION["userID"]; $aDocumentList = array(); - if ($default->db->query($sQuery)) { - while ($default->db->next_record()) { - $aDocumentList[] = & Document::get($default->db->f("document_id")); + $sql = $default->db; + if ($sql->query($sQuery)) { + while ($sql->next_record()) { + $aDocumentList[] = & Document::get($sql->f("document_id")); } } return $aDocumentList; -- libgit2 0.21.4