Index: trunk/extensions/LocalisationUpdate/LocalisationUpdate.class.php |
— | — | @@ -256,7 +256,7 @@ |
257 | 257 | $changedStrings = array_diff_assoc( $base_messages, $compare_messages ); |
258 | 258 | |
259 | 259 | // If we want to save the differences |
260 | | - if ( $saveResults === true && !empty($changedStrings) && is_array($changeStrings)) { |
| 260 | + if ( $saveResults === true && !empty($changedStrings) && is_array($changedStrings)) { |
261 | 261 | self::myLog( "--Checking languagecode {$langcode}--" ); |
262 | 262 | // The save them |
263 | 263 | $updates = self::saveChanges( $changedStrings, $forbiddenKeys, $base_messages, $langcode ); |
— | — | @@ -442,7 +442,7 @@ |
443 | 443 | $changedStrings = array_diff_assoc( $messages, $compare_messages[$language] ); |
444 | 444 | |
445 | 445 | // If we want to save the changes |
446 | | - if ( $saveResults === true && !empty($changedStrings) && is_array($changeStrings)) { |
| 446 | + if ( $saveResults === true && !empty($changedStrings) && is_array($changedStrings)) { |
447 | 447 | self::myLog( "--Checking languagecode {$langcode}--" ); |
448 | 448 | // The save them |
449 | 449 | $updates = self::saveChanges( $changedStrings, $forbiddenKeys, $base_messages, $langcode ); |