| @@ -60,9 +60,9 @@ | ||
| 60 | 60 | |
| 61 | 61 | if(strpos($meta_key, 'capabilities') === FALSE || $meta_key !== $wpdb->get_blog_prefix().'capabilities') |
| 62 | 62 | return; // Not updating caps. |
| 63 | 63 | |
| 64 | - $user_id = (integer)$object_id; | |
| 64 | + $user_id = (int)$object_id; | |
| 65 | 65 | $user = new WP_User($user_id); |
| 66 | 66 | if(!$user->ID || !$user->exists()) |
| 67 | 67 | return; // Not a valid user. |
| 68 | 68 | |
| @@ -108,9 +108,9 @@ | ||
| 108 | 108 | |
| 109 | 109 | if(strpos($meta_key, 'capabilities') === FALSE || $meta_key !== $wpdb->get_blog_prefix().'capabilities') |
| 110 | 110 | return; // Not updating caps. |
| 111 | 111 | |
| 112 | - $user_id = (integer)$object_id; | |
| 112 | + $user_id = (int)$object_id; | |
| 113 | 113 | $user = new WP_User($user_id); |
| 114 | 114 | if(!$user->ID || !$user->exists()) |
| 115 | 115 | return; // Not a valid user. |
| 116 | 116 | |
| @@ -208,9 +208,9 @@ | ||
| 208 | 208 | */ |
| 209 | 209 | public static function get_access_cap_times($user_id, $access_caps = array()) |
| 210 | 210 | { |
| 211 | 211 | $ac_times = array(); |
| 212 | - if(($user_id = (integer)$user_id)) | |
| 212 | + if(($user_id = (int)$user_id)) | |
| 213 | 213 | { |
| 214 | 214 | $ac_times = get_user_option('s2member_access_cap_times', $user_id); |
| 215 | 215 | if(!is_array($ac_times)) $ac_times = array(); |
| 216 | 216 | |