Skip to content

Commit

Permalink
Fixed issue #16412: Unable to manage user with debug set
Browse files Browse the repository at this point in the history
Dev: just avoid PHP Notice
  • Loading branch information
Shnoulle committed Jul 8, 2020
1 parent ab3562d commit ab3699e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions application/models/User.php
Expand Up @@ -852,9 +852,10 @@ public function search()
}

//filter for parentUserName
$getParentName = Yii::app()->request->getParam('User');
$getParentName = $getParentName['parentUserName'];
if(isset($getParentName) && $getParentName!==null && $getParentName!==''){
// This don't re&ally work : filter stay empty
$getUser = Yii::app()->request->getParam('User');
if(!empty($getUser['parentUserName'])) {
$getParentName = $getUser['parentUserName'];
$criteria->join = "LEFT JOIN lime_users luparent ON t.parent_id = luparent.uid";
$criteria->compare('luparent.users_name', $getParentName, true, 'OR');
}
Expand Down

0 comments on commit ab3699e

Please sign in to comment.