CMS MADE SIMPLE FORGE

Shop Made Simple

 

[#8535] PHP notices

avatar
Created By: Metamorphose (metamorphose)
Date Submitted: Wed Oct 17 08:44:21 -0400 2012

Assigned To: Duketown (duketown)
Version: Version 0.3.8
CMSMS Version: 1.11.2
Severity: Trivial
Resolution: None
State: Open
Summary:
PHP notices
Detailed Description:
Please check it und correct it in the next release.

PHP notice undefined index parent_id
I changed action.defaultadmin.php at line 187-191.


FROM

$product['link_enable'] = $this->CreateLink($id, 'switchstatus', $returnid, 
$product['active'] == 1 ?
$gCms->variables['admintheme']->DisplayImage('icons/system/true.gif',
$this->Lang('text_inactive'),	'','','systemicon') :
$gCms->variables['admintheme']->DisplayImage('icons/system/false.gif',
$this->Lang('text_active'), '', '', 'systemicon'),
array('table'=>'Products','active'=>$product['active'],'current_category_id'=>$params['current_category_id'],'parent_id'=>$product['parent_id'],
'product_id'=>$product['product_id']));


TO

$product['link_enable'] = $this->CreateLink($id, 'switchstatus', $returnid,
$product['active'] == 1 ?
$gCms->variables['admintheme']->DisplayImage('icons/system/true.gif',
$this->Lang('text_inactive'),'','','systemicon') :
$gCms->variables['admintheme']->DisplayImage('icons/system/false.gif',
$this->Lang('text_active'), '', '', 'systemicon'),
array('table'=>'Products','active'=>$product['active'],'current_category_id'=>$params['current_category_id'],'product_id'=>$product['product_id']));

-----------

Value none generates PHP notices

I changed action.defaultadmin.php at line 407-410.


FROM

$options['displayquickselector'] = array(
'label'=>$this->Lang('label_displayquickselector'),
'input'=>$this->CreateInputCheckbox($id,'displayquickselector',
1,$this->GetPreference('displayquickselector', none))  );

TO

$options['displayquickselector'] =
array('label'=>$this->Lang('label_displayquickselector'),
'input'=>$this->CreateInputCheckbox($id,'displayquickselector',
1,$this->GetPreference('displayquickselector', ''))	);



History