Legend:
- Unmodified
- Added
- Removed
-
forms.php
r11 r13 28 28 function ShowEditBlock($Context = '') 29 29 { 30 global $Database, $Types ;30 global $Database, $Types, $TypeNames; 31 31 32 32 $Table = array( … … 37 37 foreach($this->Definition['Items'] as $Item) 38 38 { 39 if($Item['Type'] != 'Hidden')39 if($Item['Type'] != $TypeNames['Hidden']) 40 40 { 41 41 if(!array_key_exists($Index, $this->Values) and isset($Item['Value'])) $this->Values[$Index] = $Item['Value']; … … 49 49 function ShowHiddenBlock($Context = '') 50 50 { 51 global $Database, $Types ;51 global $Database, $Types, $TypeNames; 52 52 53 53 $Output = ''; … … 55 55 foreach($this->Definition['Items'] as $Item) 56 56 { 57 if($Item['Type'] == 'Hidden')57 if($Item['Type'] == $TypeNames['Hidden']) 58 58 { 59 59 if(!array_key_exists($Item['Name'], $this->Values) and isset($Item['Value'])) $this->Values[$Item['Name']] = $Item['Value'];
Note:
See TracChangeset
for help on using the changeset viewer.