mirror of
https://github.com/pi-hole/web.git
synced 2026-04-28 12:44:07 +01:00
Use new variable name for new array in api_FTL.php
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -249,14 +249,14 @@ else
|
||||
{
|
||||
sendRequestFTL("cacheinfo");
|
||||
$return = getResponseFTL();
|
||||
$querytypes = array();
|
||||
$cacheinfo = array();
|
||||
foreach($return as $ret)
|
||||
{
|
||||
$tmp = explode(": ",$ret);
|
||||
$querytypes[$tmp[0]] = floatval($tmp[1]);
|
||||
$cacheinfo[$tmp[0]] = floatval($tmp[1]);
|
||||
}
|
||||
|
||||
$result = array('cacheinfo' => $querytypes);
|
||||
$result = array('cacheinfo' => $cacheinfo);
|
||||
$data = array_merge($data, $result);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user