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

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

}

Thanks guys, got it working!

dansaania
  • 163
  • 3
  • 10

3 Answers3

1

empty is a function.

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

}
Yan Berk
  • 14,328
  • 9
  • 55
  • 52
1

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

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

}
KV Prajapati
  • 93,659
  • 19
  • 148
  • 186
1

Check if condition:

if(!empty($args) && $command != 'reload')
Adem Öztaş
  • 20,457
  • 4
  • 34
  • 42