Changeset 874 for trunk/Common/Form/Types/Enumeration.php
- Timestamp:
- Apr 6, 2020, 11:56:19 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Form/Types/Enumeration.php
r873 r874 11 11 $Output = $Type['Parameters']['States'][$Item['Value']]; 12 12 else $Output = $Item['Value']; 13 return ($Output);13 return $Output; 14 14 } 15 15 … … 29 29 } 30 30 $Output .= '</select>'; 31 return ($Output);31 return $Output; 32 32 } 33 33 34 34 function OnLoad($Item) 35 35 { 36 if ($_POST[$Item['Name']] == '') return (NULL);37 return ($_POST[$Item['Name']]);36 if ($_POST[$Item['Name']] == '') return NULL; 37 return $_POST[$Item['Name']]; 38 38 } 39 39 40 40 function OnLoadDb($Item) 41 41 { 42 if ($Item['Value'] == '') return (NULL);43 else return ($Item['Value']);42 if ($Item['Value'] == '') return NULL; 43 else return $Item['Value']; 44 44 } 45 45 }
Note:
See TracChangeset
for help on using the changeset viewer.