diff --git a/htdocs/demo/report/index.php b/htdocs/demo/report/index.php index 9f54a8039..9537da490 100644 --- a/htdocs/demo/report/index.php +++ b/htdocs/demo/report/index.php @@ -63,7 +63,7 @@ $context = stream_context_create($opts); - return file_get_contents('http://cppcheck.sourceforge.net/cgi-bin/democlient.cgi', false, $context); + return @file_get_contents('http://cppcheck.sourceforge.net/cgi-bin/democlient.cgi', false, $context); } /** @@ -114,25 +114,31 @@ echo "
Line | Severity | Message |
---|---|---|
" . htmlspecialchars($result['line']) . " | " . htmlspecialchars($result['severity']) . " | " . htmlspecialchars($result['msg']) . " |
Line | Severity | Message |
---|---|---|
" . htmlspecialchars($result['line']) . " | " . htmlspecialchars($result['severity']) . " | " . htmlspecialchars($result['msg']) . " |
No errors found.
\n"; } - echo "\n"; - echo "No errors found.
\n"; + echo "Problem with demo client. Please try again.
\n"; } } - else { + else { //if NO code posted... echo "Use the online demo page to create the report.
\n"; } ?>