Project

General

Profile

Revision b0dc3a2e

Added by Julien Enselme over 7 years ago

Update to Drupal 7.52

View differences:

drupal7/modules/locale/locale.admin.inc
1194 1194
    $translation = db_query("SELECT translation FROM {locales_target} WHERE lid = :lid AND language = :language", array(':lid' => $lid, ':language' => $key))->fetchField();
1195 1195
    if (!empty($value)) {
1196 1196
      // Only update or insert if we have a value to use.
1197
      if (!empty($translation)) {
1197
      if (is_string($translation)) {
1198 1198
        db_update('locales_target')
1199 1199
          ->fields(array(
1200 1200
            'translation' => $value,

Also available in: Unified diff