From f850a8a53efd719fef6c8784c5af7b89dd9a6a2f Mon Sep 17 00:00:00 2001 From: Minteck Date: Wed, 16 Nov 2022 17:58:38 +0100 Subject: Big update --- pages/docs.inc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'pages') diff --git a/pages/docs.inc b/pages/docs.inc index 6d01489..ff97ed3 100644 --- a/pages/docs.inc +++ b/pages/docs.inc @@ -215,10 +215,10 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; })); $deletable = array_values(array_filter($documents, function ($i) { - return strip_tags($i["contents"]) === "/delete"; + return str_starts_with(strip_tags($i["contents"]), "/delete"); })); $unsorted_pre = array_values(array_filter($documents, function ($i) { - return strip_tags($i["contents"]) !== "/delete"; + return !str_starts_with(strip_tags($i["contents"]), "/delete"); })); $categoryFirst = []; @@ -264,9 +264,9 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; $items): ?>

- " id="document-" class="list-group-item list-group-item-action document-listing opacity-75"> + " id="document-" class="list-group-item list-group-item-action document-listing opacity-75">   - + Deleting in hours "> @@ -278,9 +278,9 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';

Unsorted