Avoid PHP Notice: Undefined variable: show_staff ... on line 278

This commit is contained in:
savvasha
2019-06-16 18:10:42 +03:00
parent e1bfbac3a2
commit ea04a7fa0e

View File

@@ -275,7 +275,7 @@ $i = 0;
<?php endif; ?> <?php endif; ?>
</table> </table>
<?php <?php
if ( $show_staff ) { if ( isset( $show_staff ) ) {
echo sp_get_template( 'event-staff.php', array( 'id' => $id, 'index' => $index ) ); echo sp_get_template( 'event-staff.php', array( 'id' => $id, 'index' => $index ) );
} }
?> ?>