execute(array(\OCP\User::getUser())); if ($row = $result->fetchRow()){ $mode = $row['mode']; } else { $mode = 'none'; } OCP\Util::addscript('files_encryption','settings-personal'); $tmpl->assign('encryption_mode', $mode); return $tmpl->fetchPage(); } return null; ?>