Skip to content

Commit

Permalink
Fix PHP 5.4 error with empty using function
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Boudrias committed Sep 9, 2015
1 parent 6177ada commit afcc359
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hosting_saas_utils.module
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ function _hosting_task_utils_generate_todo($uri) {
$todo[$uri]['set_user_role'] = $role_name;
}

if (!empty(variable_get('hosting_saas_utils_send_email', FALSE))) {
$send_email = variable_get('hosting_saas_utils_send_email', FALSE);
if (!empty($send_email)) {
$todo[$uri]['send_email'] = TRUE;
}
}
Expand Down

0 comments on commit afcc359

Please sign in to comment.