mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
Replace x() by !empty() or defaults()
- Remove extraneous parentheses around !empty()
This commit is contained in:
parent
074493a29e
commit
d836593a3b
42 changed files with 80 additions and 80 deletions
|
@ -147,7 +147,7 @@ function wppost_settings(&$a,&$s) {
|
|||
|
||||
function wppost_settings_post(&$a,&$b) {
|
||||
|
||||
if(x($_POST,'wppost-submit')) {
|
||||
if(!empty($_POST['wppost-submit'])) {
|
||||
|
||||
PConfig::set(local_user(),'wppost','post',intval($_POST['wppost']));
|
||||
PConfig::set(local_user(),'wppost','post_by_default',intval($_POST['wp_bydefault']));
|
||||
|
@ -198,7 +198,7 @@ function wppost_post_local(&$a, &$b) {
|
|||
|
||||
$wp_post = intval(PConfig::get(local_user(),'wppost','post'));
|
||||
|
||||
$wp_enable = (($wp_post && x($_REQUEST,'wppost_enable')) ? intval($_REQUEST['wppost_enable']) : 0);
|
||||
$wp_enable = (($wp_post && !empty($_REQUEST['wppost_enable'])) ? intval($_REQUEST['wppost_enable']) : 0);
|
||||
|
||||
if ($b['api_source'] && intval(PConfig::get(local_user(),'wppost','post_by_default'))) {
|
||||
$wp_enable = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue