Fixing undeclared variables

Undeclared variables $rating['rate'], $reviewrating['rate'], and $reviewonoff['onoff'] becomes error.