- Timestamp:
- Jun 11, 2009, 3:05:12 PM (15 years ago)
- Location:
- trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/custom_functions.php
r274 r276 767 767 // Quick check. If we have no posts at all, abort! 768 768 if ( !$posts ) { 769 $gotsome = $wpdb->get_var("SELECT ID from $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' ORDER BY post_date DESC LIMIT 1"); 769 // $gotsome = $wpdb->get_var("SELECT ID from $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' ORDER BY post_date DESC LIMIT 1"); 770 $gotsome = $wpdb->get_var("SELECT 1 as test FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' LIMIT 1"); //WP2.8 770 771 if ( !$gotsome ) 771 772 return; -
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/user_sync_xoops.php
r260 r276 57 57 if ($user_group->group_type == 'Admin'){ 58 58 $ans['capabillities'] = 'administrator'; 59 $ans['allway_update'] = 0; 59 if ($user_group->groupid =1){ 60 //It always rewrites it as WordPress adninistrator for an initial admin group of XOOPS. 61 $ans['allway_update'] = 1; 62 } else { 63 // admin groups other than initial admin group of XOOPS 64 // It group rewrites group_type of the data base in Admin. 65 $ans['allway_update'] = $user_group->login_all; 66 } 60 67 break; 61 68 }
Note: See TracChangeset
for help on using the changeset viewer.