aboutsummaryrefslogtreecommitdiff
path: root/src/staff
diff options
context:
space:
mode:
Diffstat (limited to 'src/staff')
-rw-r--r--src/staff/header.php4
-rwxr-xr-xsrc/staff/report/stat.php6
2 files changed, 6 insertions, 4 deletions
diff --git a/src/staff/header.php b/src/staff/header.php
index 1f22259..650489c 100644
--- a/src/staff/header.php
+++ b/src/staff/header.php
@@ -15,7 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
////////////////////////////////////////////////////////////////////////////////
-// Last modified 05/aug/2012 by cassio@ime.usp.br
+// Last modified 29/aug/2017 by cassio@ime.usp.br
ob_start();
header ("Expires: " . gmdate("D, d M Y H:i:s") . " GMT");
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
@@ -67,7 +67,7 @@ echo " <tr>\n";
echo " <td align=center width=\"20%\"><a class=menu style=\"font-weight:bold\" href=task.php>Tasks</a></td>\n";
//echo " <td align=center width=\"20%\"><a class=menu style=\"font-weight:bold\" href=task.php>Tasks ($nr)</a></td>\n";
echo " <td align=center width=\"20%\"><a class=menu style=\"font-weight:bold\" href=score.php>Score</a></td>\n";
-echo " <td align=center width=\"20%\"><a class=menu style=\"font-weight:bold\" href=run.php>Runs</a></td>\n";
+//echo " <td align=center width=\"20%\"><a class=menu style=\"font-weight:bold\" href=run.php>Runs</a></td>\n";
echo " <td align=center width=\"20%\"><a class=menu style=\"font-weight:bold\" href=option.php>Options</a></td>\n";
echo " <td align=center width=\"20%\"><a href=\"#\" class=menu style=\"font-weight:bold\" onClick=\"window.open('report/stat.php', ".
diff --git a/src/staff/report/stat.php b/src/staff/report/stat.php
index 8a706e4..f93662a 100755
--- a/src/staff/report/stat.php
+++ b/src/staff/report/stat.php
@@ -15,7 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
////////////////////////////////////////////////////////////////////////////////
-// Last modified 05/aug/2012 by cassio@ime.usp.br
+// Last modified 29/aug/2017 by cassio@ime.usp.br
require('header.php');
@@ -139,7 +139,9 @@ $str="All Runs by Language";
$str2="Accepted Runs by Language";
reset($d['language']);
while (list($keya, $val) = each($d['language'])) {
- $val = $d['languageyes'][$keya]; if($val=="") $val=0;
+ $val=0;
+ if(isset($d['languageyes'][$keya]))
+ $val = $d['languageyes'][$keya];
$str2 .= chr(1) . $keya . "(" . $val . ")" . chr(1) . $val;
}