From 1479d0c37fb1953a833d6a5a4a77e957da1e3fb4 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 19 Jan 2017 17:09:03 +0100 Subject: fix php 7.1 warning --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') diff --git a/it.class b/it.class index 95c91e5..3846fe5 100644 --- a/it.class +++ b/it.class @@ -170,7 +170,7 @@ static function error($p = array()) if ($p['okstate']) { list($okfn, $okstatus) = explode("=", "/tmp/alertdata/okstate_" . $p['okstate']); - $failcount = $okstatus ? 0 : @file_get_contents($okfn) + 1; + $failcount = $okstatus ? 0 : (int)@file_get_contents($okfn) + 1; file_put_contents($okfn, "$failcount\n"); if ($failcount != $p['failcount']) return; -- cgit v1.2.3