Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
User Settings - Missing Value - SOLVED
02-08-2018, 06:43 AM, (This post was last modified: 02-08-2018, 06:46 AM by TurboPT.)
#5
RE: User Settings - Missing Value
I believe that the change may be easier than expected.

I made this minor change, and then 60 appears as expected for me:

Change this:
PHP Code:
If (!isset($_POST['DisplayRecordsMax']) OR $_POST['DisplayRecordsMax']=='') {
    
$_POST['DisplayRecordsMax'] = $_SESSION['DefaultDisplayRecordsMax'];


...to this:
PHP Code:
If (!isset($_POST['DisplayRecordsMax']) OR $_POST['DisplayRecordsMax']=='') {
    
$_POST['DisplayRecordsMax'] = $_SESSION['DisplayRecordsMax']; // session index change

POST will never be set when first entering the script, and the 'DefaultDisplayRecordsMax' will always be 50 (or whatever that setting might have).

The 'DisplayRecordsMax' is set at UserLogin (lines 123-127), and in the UserSettings file the same field is updated after Modify at line 94.
Reply


Messages In This Thread
RE: User Settings - Missing Value - by TurboPT - 02-08-2018, 06:12 AM
RE: User Settings - Missing Value - by VortecCPI - 02-08-2018, 06:23 AM
RE: User Settings - Missing Value - by TurboPT - 02-08-2018, 06:27 AM
RE: User Settings - Missing Value - by TurboPT - 02-08-2018, 06:43 AM
RE: User Settings - Missing Value - by VortecCPI - 02-08-2018, 06:58 AM
RE: User Settings - Missing Value - by TurboPT - 02-08-2018, 07:08 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)