Skip to content

Commit 44093b0

Browse files
committed
Update rrze-legal.php
1 parent 74fe7c7 commit 44093b0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

rrze-legal.php

+5-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
Plugin Name: RRZE Legal
55
Plugin URI: https://gitlab.rrze.fau.de/rrze-webteam/rrze-legal
6-
Version: 2.7.13
6+
Version: 2.7.14
77
Description: Legal Mandatory Information & GDPR.
88
Author: RRZE Webteam
99
Author URI: https://www.rrze.fau.de
@@ -250,10 +250,11 @@ function loaded()
250250
}
251251
// Trigger the 'loaded' method of the main plugin instance.
252252
plugin()->loaded();
253-
// Check system requirements and store any error messages.
254-
if ($error = systemRequirements()) {
253+
// Check system requirements.
254+
if (systemRequirements()) {
255255
// If there is an error, add an action to display an admin notice with the error message.
256-
add_action('admin_init', function () use ($error) {
256+
add_action('admin_init', function () {
257+
$error = systemRequirements();
257258
// Check if the current user has the capability to activate plugins.
258259
if (current_user_can('activate_plugins')) {
259260
// Get plugin data to retrieve the plugin's name.

0 commit comments

Comments
 (0)