]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/common.lib.php
Introduced view_own_tasks right and its handling.
[timetracker.git] / WEB-INF / lib / common.lib.php
index 629e7d78b8625db0bc0bd6dd1a4e5fc9e43596f1..325ae73b42f29b436a4b759618acc18028b1ddc3 100644 (file)
@@ -332,8 +332,8 @@ function ttValidCondition($val, $emptyValid = true)
 function ttValidIP($val, $emptyValid = false)
 {
   $val = trim($val);
-  if (strlen($val) == 0 && !$emptyValid)
-    return false;
+  if (strlen($val) == 0 && $emptyValid)
+    return true;
 
   $subnets = explode(',', $val);
   foreach ($subnets as $subnet) {