Plugin Directory

Changeset 2688825


Ignore:
Timestamp:
03/04/2022 11:15:51 AM (4 years ago)
Author:
aaf017
Message:

Add PHP8 Support - some fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-cassify/trunk/classes/wp_cassify_plugin.php

    r2621574 r2688825  
    4242   
    4343    private $wp_cassify_service_ticket_salt;
     44
     45    private $wp_cassify_cache_times_for_auth_recheck;
    4446
    4547    /**
     
    279281
    280282        if ( isset( $_SESSION['wp_cassify'] ) ) {
    281             if ( $_SESSION['wp_cassify'][ $this->wp_cassify_current_blog_id ]['user_auth'] == true ) {
    282                 $is_authenticated = true;
     283            if ( array_key_exists('user_auth', $_SESSION['wp_cassify'][ $this->wp_cassify_current_blog_id ] ) ) {
     284                if ( $_SESSION['wp_cassify'][ $this->wp_cassify_current_blog_id ]['user_auth'] == true ) {
     285                    $is_authenticated = true;
     286                }
    283287            }
    284288        }
     
    814818           
    815819            if ( ( ( $_SESSION['wp_cassify'][ $this->wp_cassify_current_blog_id ]['unauth_count'] != -2 ) && ( $this->wp_cassify_get_cache_times_for_auth_recheck() == -1 ) ) ||
    816                  ( $_SESSION['wp_cassify'][ $this->wp_cassify_current_blog_id ]['unauth_count'] >= 0  && $_SESSION['wp_cassify'][ $this->wp_cassify_current_blog_id ]['unauth_count'] < $this->_cache_times_for_auth_recheck )
     820                 ( $_SESSION['wp_cassify'][ $this->wp_cassify_current_blog_id ]['unauth_count'] >= 0  && $_SESSION['wp_cassify'][ $this->wp_cassify_current_blog_id ]['unauth_count'] < $this->wp_cassify_cache_times_for_auth_recheck )
    817821            ) {
    818822                $auth = false;
    819823
    820                 if ( $this->_cache_times_for_auth_recheck != -1 ) {
     824                if ( $this->wp_cassify_cache_times_for_auth_recheck != -1 ) {
    821825                    $_SESSION['wp_cassify'][ $this->wp_cassify_current_blog_id ]['unauth_count']++;;
    822826                }
Note: See TracChangeset for help on using the changeset viewer.