Skip to content

Commit 0135ff0

Browse files
committed
fix valid filter_var() options.. php documentation is crap fucking fashioned devs
* the php documentation does not specifies if the options can be any mixed so later we found is only int or array valid allowed
1 parent 43dc4c2 commit 0135ff0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appsys/core/Input.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ public function valid_ip($ip, $which = '')
555555
$flag = FILTER_FLAG_IPV6;
556556
break;
557557
default:
558-
$flag = '';
558+
$flag = 0;
559559
break;
560560
}
561561

0 commit comments

Comments
 (0)