The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
4.3.9 during_user_creation.php $theNewId Off by Three
#1
Hello,

I have found that the $theNewId php varible as used in the 'during_user_creation.php' file is not the same value as in join.php but is actually 3 less. In other words, I have to add three to update the additional fields in the same users table record.

Code:
dump($theNewId);
// off by -3 (minus three)
Code:
$db->update('users',$theNewId + 3,['account_id'=>Input::get('account_id')]);
// add three to update the correct record in users table.

- Mike

  Reply


Messages In This Thread
4.3.9 during_user_creation.php $theNewId Off by Three - by mleary2001 - 02-26-2018, 10:29 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)