File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Ajax/semantic/widgets/base Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -121,17 +121,18 @@ protected function _getValue($property, $index) {
121
121
if ($ property instanceof \ReflectionProperty) {
122
122
$ value = $ this ->_getPropertyValue ($ property );
123
123
$ propertyName = $ property ->getName ();
124
- } elseif (\is_callable ($ property ) && array_search ($ property , [
125
- "system "
126
- ]) === false )
127
- $ value = $ property ($ this ->instance );
124
+ } elseif (\is_callable ($ property ) && \array_search ($ property , ['system ' ,'date ' ]) === false ){
125
+ try {
126
+ $ value = $ property ($ this ->instance );
127
+ }catch (\Error $ e ){}
128
+ }
128
129
elseif (\is_array ($ property )) {
129
130
$ values = \array_map (function ($ v ) use ($ index ) {
130
131
return $ this ->_getValue ($ v , $ index );
131
132
}, $ property );
132
- $ value = \implode ("" , $ values );
133
+ $ value = \implode ('' , $ values );
133
134
} elseif (\is_string ($ property )) {
134
- $ value = "" ;
135
+ $ value = '' ;
135
136
if (isset ($ this ->instance ->{$ property })) {
136
137
$ value = $ this ->instance ->{$ property };
137
138
} elseif (\method_exists ($ this ->instance , $ getter = JReflection::getterName ($ property ))) {
You can’t perform that action at this time.
0 commit comments