09-24-2017, 01:50 PM
You can just move the call as far down as possible where a user normally won't edit it...or "after" the fetchPage.
The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
Status Update 024
|
09-24-2017, 01:50 PM
You can just move the call as far down as possible where a user normally won't edit it...or "after" the fetchPage.
09-24-2017, 01:51 PM
It's in the header where securePage is in the body, so that's a problem. I'm still looking.
09-24-2017, 01:52 PM
Actually, I think we can just wrap the whole function in if count > 0 because if it's not, securePage will catch it.
09-24-2017, 01:52 PM
Technically we can call reAuth from within securePage??? Since you never want to reAuth unless the page is in the DB eh? and securePage is what handles adding/redirecting the user.
09-24-2017, 01:52 PM
Yep. That did the trick.
09-24-2017, 01:53 PM
Try moving it within the securePage function too...I think it would be a good practice...because you don't want to reAuth a page a user is not using securePage on right??
09-24-2017, 01:54 PM
I could see that. securePage is pretty complicated as is. Let me take a look. I'm trying to get the redirect working.
09-24-2017, 02:01 PM
@Brandin Do you have a stray --> in your header?
http://puu.sh/xHMnf/234d7687d1.jpg
09-24-2017, 02:16 PM
Not that I can see
09-24-2017, 02:46 PM
Ok. I'll just figure it out from the diff when I push 25.
|