2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Fix listing of questions for quota

This commit is contained in:
Adam Zammit
2017-02-08 14:52:52 +11:00
parent 5ca665ea6e
commit 346a5cd2c5
2 changed files with 21 additions and 14 deletions

View File

@@ -133,14 +133,15 @@ function lime_list_answeroptions($qid,$qcode)
if ($q !== false)
{
foreach($q as $qid => $val) {
if ($val['title'] == $qcode) {
$qp = $limeRPC->get_question_properties($limeKey,$qid,array('answeroptions'));
if (!isset($qp['status'])) {
$ret = $qp;
}
break;
foreach($q as $tmp => $val) {
if ($val['title'] == $qcode) {
limerpc_init_qid($qid);
$qp = $limeRPC->get_question_properties($limeKey,$val['qid'],array('answeroptions'));
if (!isset($qp['status'])) {
$ret = $qp;
}
break;
}
}
}