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

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

}

Thanks guys, got it working!

dansaania
  • 153
  • 3
  • 10

3 Answers3

1

empty is a function.

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

}
Yan Berk
  • 14,208
  • 9
  • 53
  • 52
1

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

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

}
KV Prajapati
  • 92,042
  • 19
  • 143
  • 183
1

Check if condition:

if(!empty($args) && $command != 'reload')
Adem Öztaş
  • 18,635
  • 4
  • 32
  • 41