From 725787bcf7421143d6567e5b4f39ab5fd3fd8695 Mon Sep 17 00:00:00 2001 From: shevabam Date: Thu, 2 Nov 2017 20:54:43 +0100 Subject: fix PHP 7.1 notices "non well formed numeric value" #52 --- libs/system.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/system.php') diff --git a/libs/system.php b/libs/system.php index ee43722..b6341f6 100644 --- a/libs/system.php +++ b/libs/system.php @@ -35,7 +35,7 @@ if (!($totalSeconds = shell_exec('/usr/bin/cut -d. -f1 /proc/uptime'))) } else { - $uptime = Misc::getHumanTime($totalSeconds); + $uptime = Misc::getHumanTime((int)$totalSeconds); } // Last boot -- cgit v1.3