HOR-4547: Array to convert string
This commit is contained in:
@@ -18,7 +18,7 @@ class Configurations // extends Configuration
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function Configurations()
|
||||
public function __construct()
|
||||
{
|
||||
$this->Configuration = new Configuration();
|
||||
}
|
||||
|
||||
@@ -1740,6 +1740,14 @@ class Derivation
|
||||
return $aGrp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Review the replaced by configuration
|
||||
*
|
||||
* @param string $user
|
||||
*
|
||||
* @return string
|
||||
* @throws Exception
|
||||
*/
|
||||
function checkReplacedByUser($user)
|
||||
{
|
||||
if (is_string($user)) {
|
||||
@@ -1747,8 +1755,8 @@ class Derivation
|
||||
} else {
|
||||
$userInstance = $user;
|
||||
}
|
||||
if (! is_object( $userInstance )) {
|
||||
throw new Exception( "The user with the UID '$user' doesn't exist." );
|
||||
if (is_string($user)) {
|
||||
throw new Exception("The user with the UID " . $user . " doesn't exist.");
|
||||
}
|
||||
if ($userInstance->getUsrStatus() == 'ACTIVE') {
|
||||
return $userInstance->getUsrUid();
|
||||
|
||||
Reference in New Issue
Block a user