summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGábor Hojtsy2011-05-13 09:13:27 (GMT)
committer Gábor Hojtsy2011-05-13 09:13:27 (GMT)
commit9f338b354f1cb8239ba30a5f2bb226a430f6047d (patch)
tree6275ea11475026e82c1fd3167bd501e36e7fb36d
parent8f761f7ddbf58c5c09b703656b68277f128f92bd (diff)
Fix notices spotted by Berdir while working on #1155876
-rw-r--r--i18n_string/i18n_string.pages.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/i18n_string/i18n_string.pages.inc b/i18n_string/i18n_string.pages.inc
index 4d3538c..20756e9 100644
--- a/i18n_string/i18n_string.pages.inc
+++ b/i18n_string/i18n_string.pages.inc
@@ -89,6 +89,8 @@ function i18n_string_translate_page_form($form, &$form_state, $form_meta, $langc
'#tree' => TRUE,
);
foreach ($form_meta['#items'] as $item) {
+ $disabled = FALSE;
+ $description = '';
list($textgroup, $context) = i18n_string_context($item['#string_key']);
$source = db_select('i18n_string', 'i18ns')
->fields('i18ns')
@@ -97,8 +99,6 @@ function i18n_string_translate_page_form($form, &$form_state, $form_meta, $langc
->execute()
->fetchObject();
if ($source) {
- $disabled = FALSE;
- $description = '';
if ($source->format) {
$format = $formats[$source->format];
$disabled = !filter_access($format);