summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJelle Sebreghts2013-03-23 09:24:03 (GMT)
committer Jelle Sebreghts2013-03-23 09:24:03 (GMT)
commit16b22180d7f74f6f156a2f451859b75ed5bea65e (patch)
treebbc2f049c793e1b69cd37952a703fd2c07b94cbf
parent57b50a1cd4ebe0f3c6768cc63e84d3c03ec04d26 (diff)
fix if condition
-rw-r--r--clientside_validation.admin.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/clientside_validation.admin.inc b/clientside_validation.admin.inc
index 4203167..510d158 100644
--- a/clientside_validation.admin.inc
+++ b/clientside_validation.admin.inc
@@ -12,7 +12,7 @@ function _clientside_validation_deprecated_admin_message() {
function clientside_validation_general_settings_form($form_id, $form_state) {
drupal_set_title(t('Edit general settings'));
- if (module_exists('libraries') && $library = libraries_detect('jquery.validate') && !empty($library['installed'])) {
+ if (!module_exists('libraries') || !($library = libraries_detect('jquery.validate')) || empty($library['installed'])) {
_clientside_validation_deprecated_admin_message();
}
//jquery.validate.js settings
@@ -168,7 +168,7 @@ function clientside_validation_general_settings_form($form_id, $form_state) {
}
function clientside_validation_settings_form($form, $form_state, $cvs_formid = NULL, $cvs_type = 'default') {
- if (module_exists('libraries') && $library = libraries_detect('jquery.validate') && !empty($library['installed'])) {
+ if (!module_exists('libraries') || !($library = libraries_detect('jquery.validate')) || empty($library['installed'])) {
_clientside_validation_deprecated_admin_message();
}
$settings = clientside_validation_settings_load($cvs_type, $cvs_formid, TRUE);
@@ -561,7 +561,7 @@ function _cv_setting_status($status) {
}
function clientside_validation_settings_overview($form, $form_state, $cvs_type) {
- if (module_exists('libraries') && $library = libraries_detect('jquery.validate') && !empty($library['installed'])) {
+ if (!module_exists('libraries') || !($library = libraries_detect('jquery.validate')) || empty($library['installed'])) {
_clientside_validation_deprecated_admin_message();
}
$form = array();