telephone / LookingGlass

A user-friendly PHP Looking Glass
MIT License
1.25k stars 345 forks source link

Fix for PHP7.0 #36

Open cris1 opened 8 years ago

cris1 commented 8 years ago

This adjustment fixed the "PHP Fatal error: Uncaught Error: Function name must be a string in Ajax.php" for me running PHP7.0

ooooyeahbabe commented 2 years ago

$output = $lg->$_GET['cmd']($_GET['host']); Change to $output = $lg->{$_GET['cmd']}($_GET['host']);