update to 9.0.4

This commit is contained in:
Km.Van
2025-08-14 21:10:15 +08:00
parent d44ea1d6aa
commit 79986a0b9f
5 changed files with 13 additions and 6 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{
"APP_VERSION": "9.0.3",
"APP_VERSION": "9.0.4",
"APP_NAME": "X Prober",
"APP_URL": "https://github.com/kmvan/x-prober",
"AUTHOR_URL": "https://inn-studio.com/prober",
+6
View File
@@ -2,6 +2,12 @@
All Notable changes to `X-Prober` will be documented in this file
## 9.0.4 - 2025-08-14
### Fix
- Fix array_find function in PHP5.4 error
## 9.0.3 - 2025-08-14
### Fix
+1 -1
View File
@@ -1,5 +1,5 @@
{
"APP_VERSION": "9.0.3",
"APP_VERSION": "9.0.4",
"APP_NAME": "X Prober",
"APP_URL": "https://github.com/kmvan/x-prober",
"AUTHOR_URL": "https://inn-studio.com/prober",
+4 -3
View File
@@ -1415,12 +1415,13 @@ final class NodesAction
}
private function getNodeData($nodeId)
{
$node = array_find(NodesApi::getUserConfigNodes(), function ($item) use ($nodeId) {
$nodes = array_filter(NodesApi::getUserConfigNodes(), function ($item) use ($nodeId) {
return isset($item['url']) && isset($item['id']) && $item['id'] === $nodeId;
});
if ( ! $node) {
if ( ! $nodes) {
return;
}
$node = $nodes[0];
$isDev = \defined('XPROBER_IS_DEV') && XPROBER_IS_DEV;
$url = $node['url'];
$isRemote = ( ! str_contains($url, 'localhost') || ! str_contains($url, '127.0.0.1'));
@@ -1481,7 +1482,7 @@ namespace InnStudio\Prober\Components\Config;
class ConfigApi
{
public static $config = array (
'APP_VERSION' => '9.0.3',
'APP_VERSION' => '9.0.4',
'APP_NAME' => 'X Prober',
'APP_URL' => 'https://github.com/kmvan/x-prober',
'AUTHOR_URL' => 'https://inn-studio.com/prober',
+1 -1
View File
@@ -8,7 +8,7 @@ namespace InnStudio\Prober\Components\Config;
class ConfigApi
{
public static $config = array (
'APP_VERSION' => '9.0.3',
'APP_VERSION' => '9.0.4',
'APP_NAME' => 'X Prober',
'APP_URL' => 'https://github.com/kmvan/x-prober',
'AUTHOR_URL' => 'https://inn-studio.com/prober',