(2003-2009) * @author Froxlor team (2010-) * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt * @package Functions * @version $Id$ */ function getFormFieldDataInt($fieldname, $fielddata, &$input) { if(isset($input[$fieldname])) { $newfieldvalue = (int)$input[$fieldname]; } else { $newfieldvalue = (int)$fielddata['default']; } return $newfieldvalue; }