diff options
author | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2018-02-23 21:26:02 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2018-02-23 21:26:02 +0300 |
commit | 17bf8b7309919f8ac593d7c563b31472780ee83b (patch) | |
tree | fb5b3d6bd958d9cb8bb06d42a188b2c26eea84b0 /error_report.php | |
parent | 69c7720336f44080a0b070239a6158d022cd9917 (diff) |
Replace static methods with instance methods
Replaces PhpMyAdmin\UserPreferences static methods with instance methods.
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'error_report.php')
-rw-r--r-- | error_report.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/error_report.php b/error_report.php index a30998e777..408a4eb201 100644 --- a/error_report.php +++ b/error_report.php @@ -119,7 +119,8 @@ if (isset($_REQUEST['send_error_report']) if (isset($_REQUEST['always_send']) && $_REQUEST['always_send'] === "true" ) { - UserPreferences::persistOption("SendErrorReports", "always", "ask"); + $userPreferences = new UserPreferences(); + $userPreferences->persistOption("SendErrorReports", "always", "ask"); } } } elseif (! empty($_REQUEST['get_settings'])) { |