Changeset 835 for trunk/Modules
- Timestamp:
- Aug 25, 2015, 12:11:13 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Translation/Save.php
r834 r835 26 26 $Filter = array(); 27 27 foreach($Group['Items'] as $GroupItem) 28 if(($GroupItem['Visible'] == 1)) 28 { 29 if(($GroupItem['Visible'] == 1) and ($EnglishText[$GroupItem['Column']] != '')) 29 30 $Filter[] = '(`'.$GroupItem['Column'].'` = "'.addslashes($EnglishText[$GroupItem['Column']]).'")'; 30 if(count($Filter) > 0) $Filter = ' AND ('.implode(' OR ', $Filter).')'; 31 } 32 if(count($Filter) > 0) $Filter = ' AND ('.implode(' OR ', $Filter).')'; 33 else $Filter = ' AND 0'; 31 34 32 35 $Query = 'SELECT * FROM `'.$Table.'` WHERE (`Language` = '.$this->System->Config['OriginalLanguage'].')'.$Filter;
Note:
See TracChangeset
for help on using the changeset viewer.