View Issue Details

IDProjectCategoryView StatusLast Update
0017186phplist applicationOtherpublic28-06-14 13:40
Reporterduncanc 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.0.6 
Target Version3.0.7Fixed in Version3.0.7 
Summary0017186: PHP notice about undefined index
DescriptionLine 691 in file admin/lib.php causes a PHP notice warning when error reporting is enabled.

[09-May-2014 05:30:01 Europe/London] PHP Notice: Undefined index: MC in /home/ealiyorg/public_html/lists/admin/lib.php on line 691

The code is
 
    if (is_object($GLOBALS['MC'])) {

$MC is populated by this code in admin/init.php, so lib.php needs to test for the variable existing.

if (defined('MEMCACHED')) {
  include_once dirname(__FILE__).'/class.memcached.php';
  if (class_exists('phpListMC')) {
    $GLOBALS['MC'] = new phpListMC();
TagsNo tags attached.

Activities

duncanc

28-06-14 13:10

developer   ~0054066

See GitHub pull request https://github.com/michield/phplist/pull/31