Commit 45bfff9e2dabb02a1097a642496492c2b61e40f6
1 parent
fc1b2887
Fix bug in SQL query - equivalence testing is '=' in SQL, not '=='
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5647 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
1 deletions
plugins/ktstandard/KTDiscussion.php
| ... | ... | @@ -131,7 +131,7 @@ class KTDocumentDiscussionAction extends KTDocumentAction { |
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | $threads = DiscussionThread::getList($sQuery); |
| 134 | - $sQuery2 = sprintf('document_id = %d AND state == %d', $this->oDocument->getId(), DISCUSSION_CLOSED); | |
| 134 | + $sQuery2 = sprintf('document_id = %d AND state = %d', $this->oDocument->getId(), DISCUSSION_CLOSED); | |
| 135 | 135 | $closed = DiscussionThread::getList($sQuery2); |
| 136 | 136 | |
| 137 | 137 | $aTemplateData = array( | ... | ... |