Fix variable by reference + fix missing semicolon

pull/4862/head
Angel Fernando Quiroz Campos 2 years ago
parent 59f27e915e
commit cd1c56e529
  1. 2
      public/main/gradebook/lib/flatview_data_generator.class.php
  2. 3
      public/main/inc/lib/pear/HTML/QuickForm/Controller.php

@ -575,7 +575,7 @@ class FlatViewDataGenerator
$item_total += $result['item_total'];
$item_value_total += $result['item_value_total'];
$total_score = [$item_value_total, $item_total];
$style = api_get_setting('gradebook.gradebook_report_score_style')
$style = api_get_setting('gradebook.gradebook_report_score_style');
$customDisplayIsStandalone = ('true' === api_get_setting('gradebook.gradebook_score_display_custom_standalone'))
&& $scoreDisplay->is_custom();

@ -207,7 +207,8 @@ class HTML_QuickForm_Controller
case 'jump':
include_once 'HTML/QuickForm/Action/' . ucfirst($actionName) . '.php';
$className = 'HTML_QuickForm_Action_' . $actionName;
$this->_actions[$actionName] =& new $className();
$var = new $className();
$this->_actions[$actionName] =& $var;
return $this->_actions[$actionName]->perform($page, $actionName);
break;
default:

Loading…
Cancel
Save