CMS MADE SIMPLE FORGE

Newsletter Made Simple

 

[#9170] Undefined index in mail text

avatar
Created By: Luca Di Gaspero (luca.digaspero)
Date Submitted: Thu Apr 18 10:56:20 -0400 2013

Assigned To:
Version: 2.7.2
CMSMS Version: None
Severity: Minor
Resolution: Works For Me
State: Closed
Summary:
Undefined index in mail text
Detailed Description:
The current version of the class.NMSContentResource.php could add a PHP
undefined index error message in the email text. In order to get rid of this I
propose the following patch, which works in my installation:

56c56
<     if( !is_array($this->_msgs[$msg]) ) $this->_msgs[$msg] = array();
---
>     if( !isset($this->_msgs[$msg]) || !is_array($this->_msgs[$msg]) )
$this->_msgs[$msg] = array();


History

Comments
avatar
Date: 2014-04-26 11:39
Posted By: Robert Campbell (calguy1000)

This probably indicates an error in a different part of the system that should
be fixed.
      
Updates

Updated: 2014-12-12 10:10
state: Open => Closed

Updated: 2014-04-26 11:39
resolution_id: => 11
cmsms_version_id: 30005 => -1