Commit ae2926fd623e7b5bccdfba56c2b2d815d797bddc

Authored by kevin_fourie
1 parent 99047038

Merged in from DEV trunk...

KTS-2221
"The folder_subscriptions table does not have an "is_tree" field."
Fixed. Fixed SQL query. Thanks, Hilário!

KTS-2222
"Folder subscriptions dont show up in internal RSS"
Fixed. Fixed SQL query. Thanks, Hilário!

Committed By: Kevin Fourie
Reviewed By: Jalaloedien Abrahams

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/trunk@7010 c91229c3-7414-0410-bfa2-8a42b809f60b
plugins/rssplugin/KTrss.inc.php
... ... @@ -93,9 +93,9 @@ class KTrss{
93 93  
94 94 // Get list of folder subscriptions
95 95 function getFolderList($iUserId){
96   - $sQuery = "SELECT folder_id as id, is_tree as tree FROM folder_subscriptions WHERE user_id = ?";
  96 + $sQuery = "SELECT folder_id as id FROM folder_subscriptions WHERE user_id = ?";
97 97 $aParams = array($iUserId);
98   - $aFolderList = DBUtil::getResultArray(array($sQuery, $aParams));
  98 + $aFolderList = DBUtil::getResultArrayKey(array($sQuery, $aParams), 'id');
99 99  
100 100 if (PEAR::isError($aFolderList)) {
101 101 // XXX: log error
... ...