Skip to content

Commit

Permalink
using empty string instead of null, avoid further potential deprecati…
Browse files Browse the repository at this point in the history
…on notice on comparison
  • Loading branch information
itthinx committed Nov 22, 2024
1 parent 851e9d3 commit 81b2492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/class-groups-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ class VARCHAR(255) DEFAULT NULL,
*/
public static function version_check() {
global $groups_version, $groups_admin_messages;
$previous_version = get_option( 'groups_plugin_version', null );
$previous_version = get_option( 'groups_plugin_version', '' );
$groups_version = GROUPS_CORE_VERSION;
// auto-enable legacy support on upgrade from Groups previous to 2.0.0
if ( $previous_version ) {
Expand Down

0 comments on commit 81b2492

Please sign in to comment.