Index: trunk/core/units/general/helpers/modules.php =================================================================== diff -u -N -r4590 -r4591 --- trunk/core/units/general/helpers/modules.php (.../modules.php) (revision 4590) +++ trunk/core/units/general/helpers/modules.php (.../modules.php) (revision 4591) @@ -7,6 +7,23 @@ return $this->_GetModules(); } + function getWhereClause() + { + $where_clause = Array('Loaded = 1'); + + if (!$this->Application->IsAdmin()) return $where_clause; + + $modules = $this->_GetModules(); + if ($modules) { + foreach ($modules as $module_index => $module) { + $modules[$module_index] = $this->Conn->qstr($module); + } + $where_clause[] = 'Name IN ('.implode(',', $modules).')'; + } + + return $where_clause; + } + function _EnableCookieSID() { $session =& $this->Application->recallObject('Session');