Corrections suggested in the pull request comments have been done.

pull/2487/head
David Nos 10 years ago
parent 62736f088b
commit 7bd1c953ac
  1. 4
      main/inc/lib/course_description.lib.php
  2. 2
      main/webservices/registration.soap.php

@ -263,7 +263,7 @@ class CourseDescription
$result = Database::insert($tbl_stats_item_property, $params);
return $result?1:0;
return $result ? 1 : 0;
}
/**
@ -288,7 +288,7 @@ class CourseDescription
'id = ? AND session_id = ? AND c_id = ?' => [
$this->id,
$this->session_id,
$this->course_id?$this->course_id:api_get_course_int_id(),
$this->course_id ? $this->course_id : api_get_course_int_id(),
],
]
);

@ -1853,7 +1853,7 @@ function WSEditUser($params)
if ($user_id == 0) {
return 0;
} else if (empty($enable) || !$enable) {
} else if (empty($enable)) {
$sql = "SELECT user_id FROM $table_user
WHERE user_id ='$user_id' AND active= '0'";
$resu = Database::query($sql);

Loading…
Cancel
Save