';
$i++;
}
@@ -274,7 +274,7 @@ async function add_item(db,element_id1,field1,element_id2,field2){ //we have two
echo '';
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 f6b6e2e..833c773 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,11 +71,10 @@ 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;
}
- //$yar_files = array_merge($yar_files, list_yara_files($path));
}
// If the entry is a file and ends with .yar extension, add it to the array
elseif (is_file($path) && pathinfo($path, PATHINFO_EXTENSION) === 'yar') {