summaryrefslogtreecommitdiff
path: root/includes/functions_category.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/functions_category.php')
-rw-r--r--includes/functions_category.php17
1 files changed, 0 insertions, 17 deletions
diff --git a/includes/functions_category.php b/includes/functions_category.php
deleted file mode 100644
index 808708c..0000000
--- a/includes/functions_category.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-function get_all_categories(): array
-{
- $sql = "SELECT cat_id FROM categories ORDER BY cat_id;";
- $result = Database::get()->query($sql);
-
- $categories = array();
-
- foreach ($result as $row) {
- $category = new Category();
- $category->get_from_database($row['cat_id']);
- array_push($categories, $category);
- }
-
- return $categories;
-} \ No newline at end of file