You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
klas
changed the title
When parameter with empty value is passed to the JInput and filter is INT, JInput will return 0 instead of default value.
When parameter with empty value is passed to the JInput and filter is INT, JInput will return 0 instead of default value.
Jan 21, 2015
Steps to reproduce the issue
Pass parameter like abc= to the url. If you do $abc = JFactory::getApplication()->input->get('abc',null,'int); you will get 0 as value.
Expected result
null (or any other default specified in get call )
Actual result
0
System information (as much as possible)
Additional comments
The text was updated successfully, but these errors were encountered: