PluginProbe
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions / 260917
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions v260917
260917 260913 260909 260829 260814 260805 110710 110731 110812 110815 110912 110913 110915 110926 110927 111002 111003 111011 111017 111029 111105 111206 111216 111220 120213 All 189 releases
← All changes | src/includes/classes/utils-time.inc.php +3 -3 260805260917 View file →
@@ -163,10 +163,10 @@
163 163 * @return int Unix timestamp indicating the EOT Time calculated by this routine.
164 164 */
165 165 public static function auto_eot_time($user_id = 0, $period1 = '', $period3 = '', $eotper = '', $lpt = 0, $ext = 0)
166 166 {
167 - $eot_grace_time = (integer)$GLOBALS['WS_PLUGIN__']['s2member']['o']['eot_grace_time'];
168 - $eot_grace_time = (integer)apply_filters('ws_plugin__s2member_eot_grace_time', $eot_grace_time);
167 + $eot_grace_time = (int)$GLOBALS['WS_PLUGIN__']['s2member']['o']['eot_grace_time'];
168 + $eot_grace_time = (int)apply_filters('ws_plugin__s2member_eot_grace_time', $eot_grace_time);
169 169 $p1_time = $p3_time = $eot_time = $auto_eot_time = 0; // Intialize.
170 170
171 171 if($user_id && ($user = new WP_User ($user_id)) && $user->ID)
172 172 {
@@ -178,9 +178,9 @@
178 178
179 179 if(($access_cap_times = c_ws_plugin__s2member_access_cap_times::get_access_cap_times($user_id))) {
180 180 foreach(array_reverse($access_cap_times, TRUE) as $_time => $_cap) {
181 181 if(strpos($_cap, '-') !== 0 && $_cap !== 'level0') {
182 - $last_paid_access_cap_time = (integer)$_time;
182 + $last_paid_access_cap_time = (int)$_time;
183 183 break; // Got what we need; stop here.
184 184 }
185 185 } // unset($_time, $_cap); // Housekeeping.
186 186 }