WordPress.org

Plugin Directory

Changeset 607157


Ignore:
Timestamp:
10/02/12 19:39:46 (19 months ago)
Author:
MattyRob
Message:

Fix glitch in toggle function code and prepare admin class for subscriber page refresh

Location:
subscribe2/trunk/classes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • subscribe2/trunk/classes/class-s2-admin.php

    r593425 r607157  
    346346        global $wpdb; 
    347347 
    348         $who = array('all' => __('All Users and Subscribers', 'subscribe2'), 
    349             'public' => __('Public Subscribers', 'subscribe2'), 
     348        $who = array('public' => __('Public Subscribers', 'subscribe2'), 
    350349            'confirmed' => '   ' . __('Confirmed', 'subscribe2'), 
    351350            'unconfirmed' => '   ' . __('Unconfirmed', 'subscribe2'), 
  • subscribe2/trunk/classes/class-s2-core.php

    r607129 r607157  
    834834            $wpdb->get_results($wpdb->prepare("UPDATE $this->public SET active='1', conf_date=CURDATE(), conf_time=CURTIME(), conf_ip=%s WHERE CAST(email as binary)=%s", $this->ip, $email)); 
    835835        } else { 
    836             $wpdb->get_results($wpdb->prepare("UPDATE $this->public SET active='0' conf_date=CURDATE(), conf_time=CURTIME(), conf_ip=%s WHERE CAST(email as binary)=%s", $this->ip, $email)); 
     836            $wpdb->get_results($wpdb->prepare("UPDATE $this->public SET active='0', conf_date=CURDATE(), conf_time=CURTIME(), conf_ip=%s WHERE CAST(email as binary)=%s", $this->ip, $email)); 
    837837        } 
    838838    } // end toggle() 
Note: See TracChangeset for help on using the changeset viewer.