Fixing undeclared variables

Undeclared variables $rating['rate'], $reviewrating['rate'], and $reviewonoff['onoff']
Merge pull request #2 from semplon/patch-1

Fixing undeclared variables