Skip to content

Commit

Permalink
Fixed notice undefined index
Browse files Browse the repository at this point in the history
When working as an operator the following messages appear quite often:
Notice: Undefined index: qid in quexf\verifyjs.php on line 196
Notice: Undefined index: description in quexf\verifyjs.php on line 198
  • Loading branch information
mfaber committed Nov 6, 2013
1 parent 638390c commit 2716af7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions verifyjs.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,10 @@ function bgidtocss($zoom = 1,$fid,$pid)
}

$qid_desc = get_qid_description($fid);
$qid = $qid_desc['qid'];
$description = $qid_desc['description'];
if (isset($qid_desc['qid']))
$qid = $qid_desc['qid'];
if (isset($qid_desc['description']))
$description = $qid_desc['description'];

if (isset($_GET['complete']))
{
Expand Down

0 comments on commit 2716af7

Please sign in to comment.