Index: /issm/trunk-jpl/scripts/report.sh
===================================================================
--- /issm/trunk-jpl/scripts/report.sh	(revision 13202)
+++ /issm/trunk-jpl/scripts/report.sh	(revision 13203)
@@ -266,5 +266,5 @@
 
 #4. Error report
-if [ $IS_MATLAB -eq 1 ]; then
+if [ $IS_MATLAB -eq 1 ] && [ -s matlaberror.log ]; then
 #Matlab {{{
 cat << END >> report.html
@@ -282,6 +282,5 @@
 #}}}
 fi
-if test -s petscerror.log
-then
+if [ -s petscerror.log ]; then
 	#PETSc{{{
 cat << END >> report.html
