Fix #1190
fix use of $->query_string
Merge pull request #1198 from fabrixxm/issues/1190

Issues/1190