Skip to content

Commit

Permalink
switch to property_exists() which is required in PHP 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Sep 17, 2010
1 parent 182a8a8 commit 653f91f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions grade/edit/letter/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@
require_login();

admin_externalpage_setup('letters');

$admin = true;
$returnurl = "$CFG->wwwroot/grade/edit/letter/index.php";
$editparam = '?edit=1';
} else if ($context->contextlevel == CONTEXT_COURSE) {

$PAGE->set_pagelayout('standard');//calling this here to make blocks display

require_login($context->instanceid, false, $cm);

$admin = false;
Expand Down Expand Up @@ -142,7 +142,7 @@
$gradelettername = 'gradeletter'.$i;
$gradeboundaryname = 'gradeboundary'.$i;

if (array_key_exists($gradeboundaryname, $data) and $data->$gradeboundaryname != -1) {
if (property_exists($gradeboundaryname, $data) and $data->$gradeboundaryname != -1) {
$letter = trim($data->$gradelettername);
if ($letter == '') {
continue;
Expand Down

0 comments on commit 653f91f

Please sign in to comment.