diff --git a/admin/js/plugins/ckeditor/samples/assets/posteddata.php b/admin/js/plugins/ckeditor/samples/assets/posteddata.php index 4fc5d2a..0a6e79a 100644 --- a/admin/js/plugins/ckeditor/samples/assets/posteddata.php +++ b/admin/js/plugins/ckeditor/samples/assets/posteddata.php @@ -35,7 +35,7 @@ For licensing, see LICENSE.md or http://ckeditor.com/license $value = htmlspecialchars((string)$value); ?> - +
diff --git a/includes/DatabaseHandle.class.php b/includes/DatabaseHandle.class.php index a25d7b8..39c2acb 100644 --- a/includes/DatabaseHandle.class.php +++ b/includes/DatabaseHandle.class.php @@ -1,6 +1,5 @@ '', diff --git a/includes/functions.php b/includes/functions.php index e9d9518..ae701bc 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -329,7 +329,6 @@ function doDownload($paste_id, $p_title, $p_member, $p_conntent, $p_code) { $stats = false; if ($p_code) { // Figure out extensions. - $ext = "txt"; $ext = match ($p_code) { default => 'txt', }; diff --git a/theme/bulma/user_profile.php b/theme/bulma/user_profile.php index fea881e..623efa7 100644 --- a/theme/bulma/user_profile.php +++ b/theme/bulma/user_profile.php @@ -64,8 +64,7 @@ $protocol = paste_protocol(); } elseif (strtotime($profile_join_date) <= 1609459200) { echo ''; } - if (strpos($profile_badge, '0') !== false) { - } else { + if (!str_contains($profile_badge, '0')) { echo $profile_badge; }