File tree Expand file tree Collapse file tree
content/template/listTemplate/blocks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- a8eda52c319500fecae0731cee509ae8
1+ 19e1da41df793f66c4cb9a74dcbb9581
Original file line number Diff line number Diff line change 2424 }
2525
2626 if ( $ show_descr ) {
27- echo '<div class="courseDescription"> ' . wp_kses ( $ descr , array (
28- 'br ' => array (),
29- 'p ' => array (),
30- ) ) . '</div> ' ;
27+ if ( $ descr != null ) {
28+ echo '<div class="courseDescription"> ' . wp_kses ( $ descr , array (
29+ 'br ' => array (),
30+ 'p ' => array (),
31+ ) ) . '</div> ' ;
32+ }
3133 }
3234
3335 if ( $ show_course_locations && ! empty ( $ event_cities ) && $ show_city ) {
Original file line number Diff line number Diff line change 1818 }
1919 }
2020 } else {
21- $ descr = strip_tags ( $ object [ $ descr_field ] );
21+ if ( $ object [ $ descr_field ] != null ) {
22+ $ descr = strip_tags ( $ object [ $ descr_field ] );
23+ } else {
24+ $ descr = null ;
25+ }
2226 }
2327
2428 if ( $ show_descr ) {
25- echo '<div class"courseDescription"> ' . wp_kses ( $ descr , array (
26- 'br ' => array (),
27- 'p ' => array (),
28- ) ) . '</div> ' ;
29+ if ( $ descr != null ) {
30+ echo '<div class"courseDescription"> ' . wp_kses ( $ descr , array (
31+ 'br ' => array (),
32+ 'p ' => array (),
33+ ) ) . '</div> ' ;
34+ }
2935 }
3036
3137 if ( $ show_course_locations && ! empty ( $ event_cities ) && $ show_city ) {
You can’t perform that action at this time.
0 commit comments