From c6abbac3e1e75a89c6055fdf46b54c64e2f51bcb Mon Sep 17 00:00:00 2001 From: DL6ER Date: Thu, 4 Jun 2020 14:13:15 +0200 Subject: [PATCH] Unlike the standard PHP engine, others might actually be case-sensitive. (#1428) Signed-off-by: DL6ER --- scripts/pi-hole/php/header.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/pi-hole/php/header.php b/scripts/pi-hole/php/header.php index e5ee4b29..66e3d059 100644 --- a/scripts/pi-hole/php/header.php +++ b/scripts/pi-hole/php/header.php @@ -40,7 +40,7 @@ { // $output could be either 4-5 digits or 2-3, and we only divide by 1000 if it's 4-5 // ex. 39007 vs 39 - $celsius = intVal($output); + $celsius = intval($output); // If celsius is greater than 1 degree and is in the 4-5 digit format if($celsius > 1000) { @@ -90,7 +90,7 @@ if(count($expl) == 2) { // remove " kB" from the end of the string and make it an integer - $meminfo[$expl[0]] = intVal(substr($expl[1],0, -3)); + $meminfo[$expl[0]] = intval(substr($expl[1],0, -3)); } } $memory_used = $meminfo["MemTotal"]-$meminfo["MemFree"]-$meminfo["Buffers"]-$meminfo["Cached"];