|
|
@@ -95,7 +95,7 @@ class UserRelation extends \common\components\ActiveRecord
|
|
|
WHERE @r <> 0
|
|
|
) t1
|
|
|
JOIN AR_USER_RELATION_NEW t2
|
|
|
- ON t1._id = t2.USER_ID AND t1._id != $userId;";
|
|
|
+ ON t1._id = t2.USER_ID AND t1._id != '".$userId."';";
|
|
|
$parentUidsArr = \Yii::$app->db->createCommand($sql)->queryAll();
|
|
|
if (empty($parentUidsArr)) {
|
|
|
return [];
|