Commit 05877dcab4aaf614bac175a32b35e394ee9ad980
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
Showing
1 changed file
with
4 additions
and
3 deletions
presentation/lookAndFeel/knowledgeTree/dashboardBL.php
| @@ -35,9 +35,10 @@ function getPendingCollaborationDocuments($iUserID) { | @@ -35,9 +35,10 @@ function getPendingCollaborationDocuments($iUserID) { | ||
| 35 | global $default; | 35 | global $default; |
| 36 | $sQuery = "SELECT document_id FROM $default->owl_folders_user_roles_table WHERE active=1 AND user_id=" . $_SESSION["userID"]; | 36 | $sQuery = "SELECT document_id FROM $default->owl_folders_user_roles_table WHERE active=1 AND user_id=" . $_SESSION["userID"]; |
| 37 | $aDocumentList = array(); | 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 | return $aDocumentList; | 44 | return $aDocumentList; |