summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Dudenhofer2012-11-30 21:24:58 (GMT)
committer Aaron Dudenhofer2012-11-30 21:24:58 (GMT)
commitda51834c25db6f24b6d6a5fbabec930870560dda (patch)
tree73fab9d8ab0faec6cc42d1a57a43e07005a65605
parentc7b829aaa7b04fced7a175d1758f078268337dd6 (diff)
Issue #1718986 by S@ilor: Fixed validation issue with max width field in theme settings
-rwxr-xr-xtheme-settings.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/theme-settings.php b/theme-settings.php
index 416e4b3..951cf29 100755
--- a/theme-settings.php
+++ b/theme-settings.php
@@ -518,7 +518,6 @@ function storefront_form_system_theme_settings_alter(&$form, &$form_state, $form
// Custom validate and submit functions.
$form['#validate'][] = 'storefront_theme_settings_validate';
$form['#submit'][] = 'storefront_theme_settings_submit';
-
}
/**
@@ -530,7 +529,7 @@ function storefront_theme_settings_validate($form, &$form_state) {
// Validate max_width values seperatly.
if ($values['dlayout_set_max_width'] == 1) {
- if (empty($values['dlayout_max_width']['#default_value'])) {
+ if (empty($values['dlayout_max_width'])) {
form_set_error('dlayout_max_width', t('Standard layout max-width is empty - you forgot to enter a value for the max width!'));
}
}