mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 06:38:00 +02:00
Null check for UserHandler::userClassUpdate()
This commit is contained in:
@@ -955,6 +955,7 @@ Following fields auto-filled in code as required:
|
|||||||
$pref = e107::getPref();
|
$pref = e107::getPref();
|
||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
|
|
||||||
|
$initClassStage = isset($pref['init_class_stage']) ? intval($pref['init_class_stage']) : 0;
|
||||||
$initClasses = array();
|
$initClasses = array();
|
||||||
$doClasses = false;
|
$doClasses = false;
|
||||||
$doProbation = false;
|
$doProbation = false;
|
||||||
@@ -967,14 +968,14 @@ Following fields auto-filled in code as required:
|
|||||||
$doProbation = true;
|
$doProbation = true;
|
||||||
break;
|
break;
|
||||||
case 'userfull':
|
case 'userfull':
|
||||||
if(!$pref['user_reg_veri'] || (intval($pref['init_class_stage']) == 2))
|
if(!$pref['user_reg_veri'] || ($initClassStage == 2))
|
||||||
{
|
{
|
||||||
$doClasses = true;
|
$doClasses = true;
|
||||||
}
|
}
|
||||||
$doProbation = true;
|
$doProbation = true;
|
||||||
break;
|
break;
|
||||||
case 'userpartial' :
|
case 'userpartial' :
|
||||||
if(intval($pref['init_class_stage']) === 1)
|
if($initClassStage === 1)
|
||||||
{
|
{
|
||||||
// Set initial classes if to be done on partial signup, or if selected to add them now
|
// Set initial classes if to be done on partial signup, or if selected to add them now
|
||||||
$doClasses = true;
|
$doClasses = true;
|
||||||
|
Reference in New Issue
Block a user