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

Emailing attachment has reliance on $CFG->localrequestdir

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.10
    • Fix Version/s: 3.10.2
    • Component/s: Email

      Description

      Related to MDL-66928 and from recent fix to allow email attachments to be included from that directory in MDL-70130

      If calling code calls email_to_user and $CFG->localrequestdir hasn't yet been created (/tmp/requestdir on my system), then a PHP warning is generated:

      strpos(): Empty needle
       
      /mnt/export/workplace/master/src/lib/moodlelib.php:6338
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pholden Paul Holden
              Reporter:
              pholden Paul Holden
              Peer reviewer:
              Carlos Escobedo Carlos Escobedo
              Integrator:
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Tester:
              Anna Carissa Sadia Anna Carissa Sadia
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                8/Mar/21

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 15 minutes
                  2h 15m