From cd1c56e529d2afa9f48bf4e708bfe9a3b72f127a Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Wed, 30 Aug 2023 22:55:16 -0500 Subject: [PATCH] Fix variable by reference + fix missing semicolon --- public/main/gradebook/lib/flatview_data_generator.class.php | 2 +- public/main/inc/lib/pear/HTML/QuickForm/Controller.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public/main/gradebook/lib/flatview_data_generator.class.php b/public/main/gradebook/lib/flatview_data_generator.class.php index 51a9a3cdaf..1da3522572 100644 --- a/public/main/gradebook/lib/flatview_data_generator.class.php +++ b/public/main/gradebook/lib/flatview_data_generator.class.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(); diff --git a/public/main/inc/lib/pear/HTML/QuickForm/Controller.php b/public/main/inc/lib/pear/HTML/QuickForm/Controller.php index acaa72dbde..bf0da485d2 100644 --- a/public/main/inc/lib/pear/HTML/QuickForm/Controller.php +++ b/public/main/inc/lib/pear/HTML/QuickForm/Controller.php @@ -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: