Changeset 884 for trunk/Packages


Ignore:
Timestamp:
Apr 8, 2020, 7:27:09 PM (5 years ago)
Author:
chronos
Message:
  • Fixed: Error during user registration.
  • Fixed: Error on user enter to new team.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/Locale.php

    r880 r884  
    153153      foreach ($this->Texts->Data as $Index => $Item)
    154154      {
     155        if (is_array($Item)) continue;
    155156        $DbResult = $Database->select('Locale', '*', '(`Original` ='.$Database->quote($Index).
    156157          ') AND (`Language`='.($Language['Id']).')');
    157158        if ($DbResult->num_rows > 0)
    158         $Database->update('Locale', '(`Language`='.($Language['Id']).') AND '.
    159           '(`Original` ='.$Database->quote($Index).')', array('Translated' => $Item));
    160         else $Database->insert('Locale', array('Language' => $Language['Id'],
    161          'Original' => $Index, 'Translated' => $Item));
     159        {
     160          $Database->update('Locale', '(`Language`='.($Language['Id']).') AND '.
     161            '(`Original` ='.$Database->quote($Index).')', array('Translated' => $Item));
     162        } else
     163        {
     164          $Database->insert('Locale', array('Language' => $Language['Id'],
     165           'Original' => $Index, 'Translated' => $Item, 'Fuzzy' => 0));
     166        }
    162167      }
    163168    }
Note: See TracChangeset for help on using the changeset viewer.