View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005648 | OXID ERP Interface | OXID ERP Interface - sub | public | 2014-02-10 13:52 | 2024-01-17 15:30 |
Reporter | michael_keiluweit | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | confirmed | Resolution | open | ||
Product Version | 2.12.0 | ||||
Summary | 0005648: PHP notice message when oxERPBase::_checkAccess() is called | ||||
Description | Following notice message is thrown by PHP when the method oxERPBase::_checkAccess() is called: PHP Notice: Undefined property: oxConfig::$blUseRightsRoles in [...]/modules/erp/oxerpbase.php on line 550 Problem is here: // add R&R check for access if ($myConfig->blUseRightsRoles && oxNew('OXERPCompatibility')->isShopEE()) { | ||||
Additional Information | To avoid the notice message it's needed to check if the class attribute blUseRightsRoles is existing: if ( oxNew('OXERPCompatibility')->isShopEE() && isset($myConfig->blUseRightsRoles) && $myConfig->blUseRightsRoles ) { //some code } | ||||
Tags | Solution Provided | ||||