Plugin Directory

Changeset 1809225


Ignore:
Timestamp:
01/25/2018 10:52:03 AM (8 years ago)
Author:
livehelpnow
Message:

Fix php 5.4 error by not using function return value with empty

Location:
livehelpnow-helpdesk/trunk/src/class
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • livehelpnow-helpdesk/trunk/src/class/API/Authentication.php

    r1806916 r1809225  
    151151    public function display_authentication_notice() {
    152152
    153         if ( ! empty( get_option( 'lhn_authentication_info' ) ) ) {
     153        if ( ! get_option( 'lhn_authentication_info' ) ) {
    154154            return;
    155155        }
  • livehelpnow-helpdesk/trunk/src/class/Plugin.php

    r1806916 r1809225  
    154154        }
    155155
     156        die();
     157
    156158    }
    157159}
  • livehelpnow-helpdesk/trunk/src/class/Settings.php

    r1806916 r1809225  
    2222    public function should_display_chat() {
    2323
    24         if ( empty( get_option( 'lhn_authentication_info') ) ) {
     24        if ( ! get_option( 'lhn_authentication_info' ) ) {
    2525            return;
    2626        }
     
    7171    public function chat_display_metabox() {
    7272
    73         if ( get_option( 'lhn_display_chat' ) ) {
     73        if ( ! get_option( 'lhn_display_chat' ) ) {
    7474            return;
    7575        }
  • livehelpnow-helpdesk/trunk/src/class/SettingsPage.php

    r1806916 r1809225  
    7070        $this->page_header();
    7171
    72         if ( empty( get_option( 'lhn_authentication_info' ) ) ) {
     72        if ( ! get_option( 'lhn_authentication_info' ) ) {
    7373            require_once LHN_CHAT_PLUGIN_DIR_PATH . 'src/templates/admin/authentication-info.php';
    7474            return;
Note: See TracChangeset for help on using the changeset viewer.