CMS MADE SIMPLE FORGE

Autometa

 

[#12230] Undefind index error

avatar
Created By: Gregor de Graaf (gregor)
Date Submitted: Fri Dec 27 01:04:00 -0500 2019

Assigned To:
Version: Autometa 1.2.2
CMSMS Version: 2.2.13
Severity: Minor
Resolution: None
State: Open
Summary:
Undefind index error
Detailed Description:
@ line 56 an undefined index error occurs when only using CGBlog:
$content_id = $_REQUEST[$id.'articleid'];

The change to solve it is:
// $content_id = $_REQUEST[$id.'articleid'];
if(!empty($_REQUEST['$id.articleid']) &&
!empty($_REQUEST['$id.articleid'])){
			$content_id = $_REQUEST[$id.'articleid'];
		}

This shouls also be changed at line 49, News module:
// $content_id = $_REQUEST[$id.'articleid'];
if(!empty($_REQUEST['$id.articleid']) &&
!empty($_REQUEST['$id.articleid'])){
			$content_id = $_REQUEST[$id.'articleid'];
		}

Comments:
<li><strong>1.2.3</strong>:
      <ul>
        <li>Fixed Undefined index notice for News and CGBlog</li>
      </ul>
    </li>


History