04-14-2017, 03:37 PM
What i've added below $userQ
<pre></pre>
Im not sure if it's the best solution, but it works.
<pre>
Code:
$resultsQ = $userQ->results();
if (empty($resultsQ)) {
// redirect
} else {
...
Im not sure if it's the best solution, but it works.