Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 1200 → Rev 1201

/trunk/cron.php
25,6 → 25,7
// a WebCron service (e.g. https://www.easycron.com/ ) instead, using cron.php
 
use ViaThinkSoft\OIDplus\OIDplus;
use ViaThinkSoft\OIDplus\OIDplusException;
 
try {
require_once __DIR__ . '/includes/oidplus.inc.php';
35,5 → 36,6
ob_end_clean();
} catch (\Exception $e) {
http_response_code(500); // Internal Server Error
echo $e->getMessage();
$htmlmsg = $e instanceof OIDplusException ? $e->getHtmlMessage() : htmlentities($e->getMessage());
echo $htmlmsg;
}