1
votes
$command = $_POST['cmd'];
$args = $_POST['args'];

if($args == !empty && $command != 'reload'){

}

Thanks guys, got it working!

3
$args == !empty is not validBob

3 Answers

1
votes

empty is a function.

$command = $_POST['cmd'];
$args = $_POST['args'];
if(!empty($args) && $command != 'reload'){

}
1
votes

empty() is construct and you should have to use it like:

if(!empty($args) && $command!='reload'){

}
1
votes

Check if condition:

if(!empty($args) && $command != 'reload')