Minor - fix php notices

pull/3859/head
Julio Montoya 4 years ago
parent f65d065061
commit ad6e3303c5
  1. 2
      main/lp/learnpath.class.php
  2. 2
      main/lp/scormItem.class.php
  3. 2
      main/lp/scormMetadata.class.php
  4. 2
      main/lp/scormOrganization.class.php

@ -484,7 +484,7 @@ class learnpath
public function add_item(
$parent,
$previous,
$type = 'dir',
$type,
$id,
$title,
$description,

@ -35,7 +35,7 @@ class scormItem extends learnpathItem
* @param mixed $element Depending on the type given, DB id for the lp_item or reference to the DOM element
* @param int $course_id
*/
public function __construct($type = 'manifest', &$element, $course_id = 0)
public function __construct($type, &$element, $course_id = 0)
{
if (isset($element)) {
// Parsing using PHP5 DOMXML methods.

@ -27,7 +27,7 @@ class scormMetadata
* @param mixed Depending on the type, can be the DB ID of the learnpath item or
* the pointer to the <metadata> element in the imsmanifest.xml file
*/
public function __construct($type = 'manifest', &$element)
public function __construct($type, &$element)
{
if (isset($element)) {
// Parsing using PHP5 DOMXML methods.

@ -26,7 +26,7 @@ class scormOrganization
* @param string Type of construction needed ('db' or 'manifest', default = 'manifest')
* @param mixed Depending on the type given, DB id for the lp_item or reference to the DOM element
*/
public function __construct($type = 'manifest', &$element, $scorm_charset = 'UTF-8')
public function __construct($type, &$element, $scorm_charset = 'UTF-8')
{
if (isset($element)) {
// Parsing using PHP5 DOMXML methods.

Loading…
Cancel
Save