Преглед изворни кода

Minor - format code, remove error_log

Julio Montoya пре 6 година
родитељ
комит
0f4d89d1b5

+ 0 - 1
main/exercise/exercise.php

@@ -826,7 +826,6 @@ if (!empty($exerciseList)) {
                     }
                     $actions .= $settings;
 
-
                     // Exercise results
                     $resultsLink = '<a href="exercise_report.php?'.api_get_cidreq().'&exerciseId='.$row['id'].'">'.
                         Display::return_icon('test_results.png', get_lang('Results'), '', ICON_SIZE_SMALL).'</a>';

+ 12 - 12
main/inc/lib/formvalidator/Element/DateTimeRangePicker.php

@@ -170,6 +170,18 @@ class DateTimeRangePicker extends DateRangePicker
         ];
     }
 
+    /**
+     * @param string $value
+     */
+    public function setValue($value)
+    {
+        $this->updateAttributes(
+            [
+                'value' => $value,
+            ]
+        );
+    }
+
     /**
      * Get the necessary javascript for this datepicker.
      *
@@ -246,16 +258,4 @@ class DateTimeRangePicker extends DateRangePicker
 
         return $js;
     }
-
-    /**
-     * @param string $value
-     */
-    public function setValue($value)
-    {
-        $this->updateAttributes(
-            [
-                'value' => $value
-            ]
-        );
-    }
 }

+ 0 - 1
main/survey/create_new_survey.php

@@ -343,7 +343,6 @@ $form->setDefaults($defaults);
 
 // The validation or display
 if ($form->validate()) {
-
     // Exporting the values
     $values = $form->getSubmitValues();
     // Storing the survey

+ 0 - 1
main/survey/edit_meeting.php

@@ -79,7 +79,6 @@ $form->addRule(
     'lte'
 );
 
-
 $form->addHtmlEditor('survey_introduction', get_lang('Description'), false);
 $form->setRequired($text);
 

+ 1 - 2
main/survey/survey.lib.php

@@ -508,7 +508,7 @@ class SurveyManager
             $return['id'] = $values['survey_id'];
         }
 
-        $survey_id = intval($return['id']);
+        $survey_id = (int) $return['id'];
 
         // Gradebook
         $gradebook_option = false;
@@ -1478,7 +1478,6 @@ class SurveyManager
 		            survey_id='".$survey_id."' AND
 		            question_id='".$question_id."'";
         Database::query($sql);
-        error_log($sql);
 
         // Deleting the options of the question of the survey
         self::delete_survey_question_option($survey_id, $question_id, $shared);