/trunk/includes/classes/OIDplusGui.class.php |
---|
42,7 → 42,7 |
if (!$handled) { |
if (isset($_SERVER['SCRIPT_FILENAME']) && (strtolower(basename($_SERVER['SCRIPT_FILENAME'])) !== 'ajax.php')) { // don't send HTTP error codes in ajax.php, because we want a page and not a JavaScript alert box, when someone enters an invalid OID in the GoTo-Box |
http_response_code(404); |
if (PHP_SAPI != 'cli') @http_response_code(404); |
} |
$out['title'] = _L('Error'); |
$out['icon'] = 'img/error.png'; |