Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-11826

Undefined variable: encode_eol

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Major Major
    • 3.0.12-RC3
    • 3.0.12-RC2
    • Notification System
    • None

      Not sure when this was added for 3.0.12 but a PHP error notice is displayed when sending PMs or anything to do with the messenger system due to this in includes/functions_messenger.php

       		if (empty($this->replyto))
      		{
      			$this->replyto = mail_encode($config['sitename'], $encode_eol) . ' <' . $config['board_contact'] . '>';
      		}
       
      		if (empty($this->from))
      		{
      			$this->from = mail_encode($config['sitename'], $encode_eol) . ' <' . $config['board_contact'] . '>';
      		}
       
      		$encode_eol = ($config['smtp_delivery']) ? "\r\n" : $this->eol;

      $encode_eol isn't set prior to running the mail_encode function.

            bantu Andreas Fischer [X] (Inactive)
            RMcGirr83 Rich McGirr
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: