File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ protected function _isAllowed()
112
112
{
113
113
$ namespace = (new \ReflectionObject ($ this ))->getNamespaceName ();
114
114
$ string = strtolower (str_replace (__NAMESPACE__ . '\\' ,'' , $ namespace ));
115
- $ action = explode ('\\' , $ string );
115
+ $ action = explode ('\\' ,( string ) $ string );
116
116
$ action = array_shift ($ action );
117
117
return $ this ->_authorization ->isAllowed ("Magepow_Theme::theme_ $ action " );
118
118
}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public function getConfigModule($cfg='', $value=null)
33
33
{
34
34
$ values = $ this ->configModule ;
35
35
if ( !$ cfg ) return $ values ;
36
- $ config = explode ('/ ' , $ cfg );
36
+ $ config = explode ('/ ' ,( string ) $ cfg );
37
37
$ end = count ($ config ) - 1 ;
38
38
foreach ($ config as $ key => $ vl ) {
39
39
if ( isset ($ values [$ vl ]) ){
You can’t perform that action at this time.
0 commit comments