projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
A bit more refactoring.
[timetracker.git]
/
WEB-INF
/
lib
/
common.lib.php
diff --git
a/WEB-INF/lib/common.lib.php
b/WEB-INF/lib/common.lib.php
index
629e7d7
..
325ae73
100644
(file)
--- a/
WEB-INF/lib/common.lib.php
+++ b/
WEB-INF/lib/common.lib.php
@@
-332,8
+332,8
@@
function ttValidCondition($val, $emptyValid = true)
function ttValidIP($val, $emptyValid = false)
{
$val = trim($val);
- if (strlen($val) == 0 &&
!
$emptyValid)
- return
fals
e;
+ if (strlen($val) == 0 && $emptyValid)
+ return
tru
e;
$subnets = explode(',', $val);
foreach ($subnets as $subnet) {