print '</table>';
break;
}
+
+ if(trim(end($sessions)[0]) == "") {
+ print '<table bgcolor="red">';
+ print '<tr><th><b><font color="white">no exercises defined</font></b></th><tr>';
+ print '</table>';
+ break;
+ }
+
?>
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">