Ignore:
Timestamp:
Jul 29, 2013, 9:25:33 PM (11 years ago)
Author:
chronos
Message:
  • Fixed: Error in user profile page if user id is not given.
  • Fixed: Error in translation list view if translation group item filter is empty.
  • Fixed: SQL constraint error in case of export deletion which have records in related tables.
  • Fixed: Error when table ordering parameter contain invalid value.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Translation/Save.php

    r550 r554  
    4545          if(($GroupItem['Visible'] == 1) and ($EnglishText[$GroupItem['Column']] != ''))
    4646            $Filter .= ' OR (`'.$GroupItem['Column'].'` = "'.addslashes($EnglishText[$GroupItem['Column']]).'")';
    47         $Filter = ' AND ('.substr($Filter, 3).')';
     47        if(substr($Filter, 0, 3) == ' OR') $Filter = ' AND ('.substr($Filter, 3).')';
    4848       
    4949        $DbResult = $System->Database->query('SELECT * FROM `'.$Table.'` WHERE (`Language` = '.$Config['OriginalLanguage'].')'.$Filter);
Note: See TracChangeset for help on using the changeset viewer.