diff options
Diffstat (limited to 'public/account')
| -rw-r--r-- | public/account/index.php | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/public/account/index.php b/public/account/index.php index 7bb19f5..48bfb8d 100644 --- a/public/account/index.php +++ b/public/account/index.php @@ -144,14 +144,16 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") { <input type="password" name="password-new" id="form-password-new"> </div> <div> - <input type="checkbox" name="hide-actions" value="1" id="form-hide-actions" <?php - $stmt = $db->prepare("SELECT hide_actions FROM user_preferences WHERE id = ?"); - $stmt->execute([$_SESSION["user_id"]]); - if (intval($stmt->fetch()[0]) == 1) { - echo 'checked'; - } - ?>> - <label for="hide-actions" class="inline">Hide actions</label> + <?php if (ACCOUNT_LOG_ACTIONS): ?> + <input type="checkbox" name="hide-actions" value="1" id="form-hide-actions" <?php + $stmt = $db->prepare("SELECT hide_actions FROM user_preferences WHERE id = ?"); + $stmt->execute([$_SESSION["user_id"]]); + if (intval($stmt->fetch()[0]) == 1) { + echo 'checked'; + } + ?>> + <label for="hide-actions" class="inline">Hide actions</label> + <?php endif; ?> </div> <div> <input type="checkbox" name="signout-everywhere" value="1" id="form-signout-everywhere"> |
