From 56b67c4417b03f3ccc395a543ad803ba2d70f8fa Mon Sep 17 00:00:00 2001 From: jakani24 Date: Mon, 1 Apr 2024 11:40:32 +0200 Subject: [PATCH] u --- .../cyberhex-code/system/secure_zone/php/database_settings.php | 2 +- .../system/secure_zone/php/database_settings_functions.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/cyberhex-code/system/secure_zone/php/database_settings.php b/src/server/cyberhex-code/system/secure_zone/php/database_settings.php index 31b8785..c4bb437 100644 --- a/src/server/cyberhex-code/system/secure_zone/php/database_settings.php +++ b/src/server/cyberhex-code/system/secure_zone/php/database_settings.php @@ -231,7 +231,7 @@ async function add_item(db,element_id1,field1,element_id2,field2){ //we have two $current_page = isset($_GET['page']) ? intval($_GET['page']) : 1; $offset = ($current_page - 1) * $page_size; - $yara_files[]=list_yara_files("/var/www/html/database_srv/"); + $yara_files=list_yara_files("/var/www/html/database_srv/"); $total_entries=count($yara_files); // Calculate total pages $total_pages = ceil($total_entries / $page_size); diff --git a/src/server/cyberhex-code/system/secure_zone/php/database_settings_functions.php b/src/server/cyberhex-code/system/secure_zone/php/database_settings_functions.php index 833c773..ef3ca7e 100644 --- a/src/server/cyberhex-code/system/secure_zone/php/database_settings_functions.php +++ b/src/server/cyberhex-code/system/secure_zone/php/database_settings_functions.php @@ -71,7 +71,7 @@ function list_yara_files($dir) { $path = $dir . '/' . $entry; // If the entry is a directory, call the function recursively if (is_dir($path)) { - $buf[]=list_yara_files($path); + $buf=list_yara_files($path); foreach($buf as $newpath){ $yar_files[]=$newpath; }