Эх сурвалжийг харах

Corrections suggested in the pull request comments have been done.

David Nos 8 жил өмнө
parent
commit
7bd1c953ac

+ 2 - 2
main/inc/lib/course_description.lib.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(),
                 ],
             ]
         );

+ 1 - 1
main/webservices/registration.soap.php

@@ -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);