Replace x() by !empty() or defaults()
- Remove extraneous parentheses around !empty()
This commit is contained in:
@@ -90,7 +90,7 @@ function ifttt_settings(App $a, &$s)
|
||||
|
||||
function ifttt_settings_post()
|
||||
{
|
||||
if (x($_POST, 'ifttt-submit') && isset($_POST['ifttt-rekey'])) {
|
||||
if (!empty($_POST['ifttt-submit']) && isset($_POST['ifttt-rekey'])) {
|
||||
PConfig::delete(local_user(), 'ifttt', 'key');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user