Browse code

avoid warnings about uncountable object in php 7.2

Hanno Böck authored on01/12/2017 12:36:04
Showing1 changed files
... ...
@@ -51,7 +51,10 @@ function we_have_an_error()
51 51
 {
52 52
   global $input_error;
53 53
 
54
-  return (count($input_error) > 0);
54
+  if (isset($input_error))
55
+    return (count($input_error) > 0);
56
+  else
57
+    return 0;
55 58
 }
56 59
 
57 60