Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-16891

There is logic mistake in set_send_count()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • 1.9.2
    • General
    • None
    • Any
    • MOODLE_19_STABLE

      If "email_send_count" doesn't exist's it created only when we try reset it.
      As i think it's a wrong way...

      function set_bounce_count($user,$reset=false)
      {
      if ($pref = get_record(...))

      { ... }

      else if (!empty($reset))

      { // !!!!!!!!! // If record in db doesn't exists it will be created only if $reset == true // !!!!!!!!! ...insert new record... }

      }

            poltawski Dan Poltawski
            mentis Alex Djachenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.