Minor - flint fixes

pull/3063/head
Julio Montoya 7 years ago
parent 545039e9ef
commit 5d3af80da0
  1. 12
      main/inc/lib/extra_field.lib.php
  2. 4
      main/inc/lib/message.lib.php
  3. 4
      main/inc/lib/social.lib.php
  4. 2
      src/Chamilo/CourseBundle/Component/CourseCopy/CourseRecycler.php
  5. 2
      src/Chamilo/UserBundle/Repository/UserRepository.php

@ -476,13 +476,13 @@ class ExtraField extends Model
/**
* Add elements to a form.
*
* @param FormValidator $form The form object to which to attach this element
* @param int $itemId The item (course, user, session, etc) this extra_field is linked to
* @param array $exclude Variables of extra field to exclude
* @param FormValidator $form The form object to which to attach this element
* @param int $itemId The item (course, user, session, etc) this extra_field is linked to
* @param array $exclude Variables of extra field to exclude
* @param bool $filter Whether to get only the fields with the "filter" flag set to 1 (true) or not (false)
* @param bool $useTagAsSelect Whether to show tag fields as select drop-down or not
* @param array $showOnlyTheseFields Limit the extra fields shown to just the list given here
* @param array $orderFields An array containing the names of the fields shown, in the right order
* @param bool $useTagAsSelect Whether to show tag fields as select drop-down or not
* @param array $showOnlyTheseFields Limit the extra fields shown to just the list given here
* @param array $orderFields An array containing the names of the fields shown, in the right order
* @param array $extraData
* @param bool $orderDependingDefaults
* @param bool $adminPermissions

@ -998,8 +998,8 @@ class MessageManager
}
/**
* @param int $user_id
* @param int $message_id
* @param int $user_id
* @param int $message_id
* @param int $type
*
* @return bool

@ -1872,9 +1872,9 @@ class SocialManager extends UserManager
$date = Display::dateToStringAgoAndLongDate($message['send_date']);
$currentUserId = api_get_user_id();
$userIdLoop = $message['user_sender_id'];
$receiverId = $message['user_receiver_id'];
$receiverId = $message['user_receiver_id'];
$urlImg = api_get_path(WEB_IMG_PATH);
if (!isset($users[$userIdLoop])) {
$users[$userIdLoop] = api_get_user_info($userIdLoop);
}

@ -328,7 +328,7 @@ class CourseRecycler
i.visibility = 1";
$sql = "DELETE FROM $forumCategoryTable
WHERE c_id = $courseId AND cat_id NOT IN ($subQuery)";
Database::query($sql);
Database::query($sql);
}
/**

@ -680,7 +680,7 @@ class UserRepository extends EntityRepository
;
$result = $qb->getQuery()->getResult();
} else {
$criteria = [
$criteria = [
$field => $userId,
];
$result = $em->getRepository($entity)->findBy($criteria);

Loading…
Cancel
Save