Version 1.0.43

This commit is contained in:
ultimatemember
2015-02-07 01:39:29 +02:00
parent bcffe8e193
commit 89ffec21f2
8 changed files with 97 additions and 83 deletions
+6 -4
View File
@@ -33,10 +33,12 @@ class UM_Access {
function get_meta( $post_id ) {
global $post;
$meta = get_post_custom( $post_id );
foreach ($meta as $k => $v){
if ( strstr($k, '_um_') ) {
$k = str_replace('_um_', '', $k);
$array[$k] = $v[0];
if ( isset( $meta ) && is_array( $meta ) ) {
foreach ($meta as $k => $v){
if ( strstr($k, '_um_') ) {
$k = str_replace('_um_', '', $k);
$array[$k] = $v[0];
}
}
}
if ( isset( $array ) )