Commit 05877dcab4aaf614bac175a32b35e394ee9ad980

Authored by Michael Joseph
1 parent fe63c12e

fixed pending documents bug- displaying more than one alert at a time now


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1393 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/dashboardBL.php
... ... @@ -35,9 +35,10 @@ function getPendingCollaborationDocuments($iUserID) {
35 35 global $default;
36 36 $sQuery = "SELECT document_id FROM $default->owl_folders_user_roles_table WHERE active=1 AND user_id=" . $_SESSION["userID"];
37 37 $aDocumentList = array();
38   - if ($default->db->query($sQuery)) {
39   - while ($default->db->next_record()) {
40   - $aDocumentList[] = & Document::get($default->db->f("document_id"));
  38 + $sql = $default->db;
  39 + if ($sql->query($sQuery)) {
  40 + while ($sql->next_record()) {
  41 + $aDocumentList[] = & Document::get($sql->f("document_id"));
41 42 }
42 43 }
43 44 return $aDocumentList;
... ...