function setBoardEnabled($args) { GroupHandler::validate(); $journal =& Request::getJournal(); $boardEnabled = Request::getUserVar('boardEnabled'); $journalSettingsDao =& DAORegistry::getDAO('JournalSettingsDAO'); /**Opatan Inc. : change boardEnabled from bool to int**/ $journalSettingsDao->updateSetting($journal->getJournalId(), 'boardEnabled', $boardEnabled, 'int'); Request::redirect(null, null, 'groups'); }
function setBoardEnabled($args) { GroupHandler::validate(); $journal =& Request::getJournal(); $boardEnabled = Request::getUserVar('boardEnabled') == 1 ? true : false; $journalSettingsDao =& DAORegistry::getDAO('JournalSettingsDAO'); $journalSettingsDao->updateSetting($journal->getJournalId(), 'boardEnabled', $boardEnabled); Request::redirect(null, null, 'groups'); }