diff --git a/hosting.module b/hosting.module index 167aff3eb6b66642e2819b4a297327b0c7b71ec9..881f924e4fe7506dfe2079fd463e1969593778c4 100644 --- a/hosting.module +++ b/hosting.module @@ -1320,7 +1320,7 @@ function hosting_settings($form, &$form_state) { '#default_value' => variable_get('hosting_cron_use_backend', TRUE), ); } - + $types = implode(', ', db_query('SELECT type FROM {hosting_task_log} GROUP BY type ORDER BY type')->fetchCol()); if (empty($types)) { $types = 'error warning info message notice ok status success warning'; diff --git a/task/hosting_task.module b/task/hosting_task.module index c84d2a7d8b5f689684eb1942545f8510fc0043d1..10f39c3271e1532a4c91653ab1df32cd25fa73db 100644 --- a/task/hosting_task.module +++ b/task/hosting_task.module @@ -1197,9 +1197,9 @@ function hosting_task_view($node, $view_mode, $langcode = NULL) { * Display table containing the logged information for this task. */ function _hosting_task_log_table($node, $last_position = 0) { - + $types = explode(' ', variable_get('hosting_task_logs_types_display', 'error warning info message ok status success warning')); - + $result = db_query("SELECT * FROM {hosting_task_log} WHERE vid = :vid AND lid > :lid AND type IN (:types) ORDER BY lid", array(':vid' => $node->vid, ':lid' => $last_position, ':types' => $types)); if ($result) { $headers = array('data' => 'Log message', 'execution_time' => 'Execution time', '');