Apps/Controller/Api/Profile.php 1 location
|
@@ 482-484 (lines=3) @@
|
479 |
|
} |
480 |
|
|
481 |
|
// check if passed user id is exist |
482 |
|
if (!Obj::isLikeInt($target_id) || $target_id < 1 || !App::$User->isExist($target_id)) { |
483 |
|
throw new NotFoundException('Wrong user info'); |
484 |
|
} |
485 |
|
|
486 |
|
$cfg = \Apps\ActiveRecord\App::getConfigs('app', 'Profile'); |
487 |
|
// check if rating is enabled for website |
Apps/Controller/Front/Profile.php 1 location
|
@@ 399-401 (lines=3) @@
|
396 |
|
} |
397 |
|
|
398 |
|
// check if target is defined |
399 |
|
if (!Obj::isLikeInt($target_id) || $target_id < 1 || !App::$User->isExist($target_id)) { |
400 |
|
throw new NotFoundException(); |
401 |
|
} |
402 |
|
|
403 |
|
$user = App::$User->identity(); |
404 |
|
|