Hello

reached an error while attempting to save settings at job queue config page.

Job queue
warning: Invalid argument supplied for foreach() in /xxxxx/drupal/sites/all/modules/utilities/job_queue/job_queue.module on line 235.
Saved job queue settings.
Job type Priority
Job type Priority
All other functions 0

Comments

lpalgarvio’s picture

Drupal 6.19
Job queue 3.1

lpalgarvio’s picture

the piece of code tied to this:

function job_queue_settings_form_submit($form, &$form_state) {
  foreach ($form_state['values']['priorities'] as $function => $data) {
    db_query("DELETE FROM {job_queue_functions} WHERE function = '%s'", $function);
    db_query("INSERT INTO {job_queue_functions} (function, priority) VALUES ('%s', %d)", $function, $data['priority']);
    db_query("UPDATE {job_queue} SET priority = %d WHERE function = '%s'", $data['priority'], $function);
  }
  drupal_set_message(t('Saved job queue settings.'));
}
fdg123’s picture

Drupal 6.26
Job queue 3.1

Getting exact same error msg.
Subscribing.

Frank