Fix PHP warnings.

1.10.x
Julio Montoya 11 years ago
parent 1475938b1e
commit 4d7736b6fe
  1. 4
      main/calendar/agenda_list.php
  2. 2
      main/inc/lib/formvalidator/Element/DateRangePicker.php
  3. 1
      main/inc/lib/formvalidator/FormValidator.class.php
  4. 7
      main/social/invitations.php

@ -37,8 +37,8 @@ if (!empty($GLOBALS['_cid']) && $GLOBALS['_cid'] != -1) {
// Agenda is out of the course tool (e.g personal agenda)
$url = false;
foreach ($events as &$event) {
$event['url'] = api_get_self() . '?cid=' . $event['course_id'] .
'&type=' . $event['type'];
$courseId = isset($event['course_id']) ? $event['course_id'] : '';
$event['url'] = api_get_self().'?cid='.$courseId.'&type='.$event['type'];
}
}

@ -9,7 +9,7 @@ class DateRangePicker extends HTML_QuickForm_text
/**
* Constructor
*/
public function DateRangePicker($elementName = null, $elementLabel = null, $attributes = null)
public function __construct($elementName = null, $elementLabel = null, $attributes = null)
{
if (!isset($attributes['id'])) {
$attributes['id'] = $elementName;

@ -185,7 +185,6 @@ EOT;
$this->layout = $layout;
}
/**
* Adds a text field to the form.
* A trim-filter is attached to the field.

@ -4,9 +4,7 @@
* @package chamilo.social
* @author Julio Montoya <gugli100@gmail.com>
*/
/**
* Initialization
*/
$language_file = array('userInfo');
$cidReset=true;
require_once '../inc/global.inc.php';
@ -93,8 +91,7 @@ if (is_array($_GET) && count($_GET)>0) {
}
//Block Avatar Social
$userInfo = UserManager::get_user_info_by_id($user_id);
$social_avatar_block = SocialManager::getSocialUserBlock($user_id, invitations);
$social_avatar_block = SocialManager::getSocialUserBlock($user_id, 'invitations');
//Block Menu Social
$social_menu_block = SocialManager::show_social_menu('invitations');
//Block Invitations

Loading…
Cancel
Save