Jump to content

Combine if statement and check if exists


Stefan83

Recommended Posts

Hi
 
I'm getting a undefined index error because I belive I need to check if inApp exists before calling it. This is what I have, how do I rewrite? Do I need if (isset.....?
<?php if ( 'yes' == get_field('hide_header_and_footer') || ($_GET['inApp'] == '1') ): 
// Do stuff
endif; ?>

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.