I have a piece of code like:
if ( (isset($_REQUEST['action']) && $_REQUEST['action'] != 'check') || (isset($_POST['action'])) )
$action = ((isset($_REQUEST['listing']) && $_REQUEST['listing'] != 'placements') ? $_REQUEST['action'] : $_POST['action']);
and when I compile it returns an "jquery-2.2.3.min.js?ver=2.2.3:2 Uncaught Error: Syntax error, unrecognized expression: Notice: Undefined index: action in ..." and it looks weird because there's the previous if clause which should avoid that kind of error if it is not set... what I have missed?
Thanks! Cheers! Luigi