diff --git a/main/tracking/messages.php b/main/tracking/messages.php index 90458e824c..386d4aa1c6 100644 --- a/main/tracking/messages.php +++ b/main/tracking/messages.php @@ -17,6 +17,7 @@ if (!$allowUser) { $fromUserId = isset($_GET['from_user']) ? (int) $_GET['from_user'] : 0; $toUserId = isset($_GET['to_user']) ? (int) $_GET['to_user'] : 0; + if (empty($fromUserId) || empty($toUserId)) { api_not_allowed(true); } diff --git a/plugin/migrationmoodle/src/Loader/TrackCourseAccessLoader.php b/plugin/migrationmoodle/src/Loader/TrackCourseAccessLoader.php index 23c7b3eb88..37d25c85e2 100644 --- a/plugin/migrationmoodle/src/Loader/TrackCourseAccessLoader.php +++ b/plugin/migrationmoodle/src/Loader/TrackCourseAccessLoader.php @@ -13,7 +13,7 @@ use Chamilo\PluginBundle\MigrationMoodle\Interfaces\LoaderInterface; class TrackCourseAccessLoader implements LoaderInterface { /** - * @inheritDoc + * {@inheritdoc} */ public function load(array $incomingData) { diff --git a/plugin/migrationmoodle/src/Task/TrackCourseAccessTask.php b/plugin/migrationmoodle/src/Task/TrackCourseAccessTask.php index fc82edd89d..66fb696991 100644 --- a/plugin/migrationmoodle/src/Task/TrackCourseAccessTask.php +++ b/plugin/migrationmoodle/src/Task/TrackCourseAccessTask.php @@ -19,7 +19,7 @@ use Chamilo\PluginBundle\MigrationMoodle\Transformer\Property\LoadedUserSessionL class TrackCourseAccessTask extends BaseTask { /** - * @inheritDoc + * {@inheritdoc} */ public function getExtractConfiguration() { @@ -46,7 +46,7 @@ class TrackCourseAccessTask extends BaseTask } /** - * @inheritDoc + * {@inheritdoc} */ public function getTransformConfiguration() { @@ -75,7 +75,7 @@ class TrackCourseAccessTask extends BaseTask } /** - * @inheritDoc + * {@inheritdoc} */ public function getLoadConfiguration() {