Changeset 54

Show
Ignore:
Timestamp:
02/19/07 19:41:39 (5 years ago)
Author:
yann
Message:

work with php 4

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp_iminr.php

    r51 r54  
    232232// Return true if tracker isn't desable for current user role 
    233233function wp_iminr_enable_for_user() { 
    234         foreach( wp_get_current_user()->roles as $role ) { 
     234        $user = wp_get_current_user(); 
     235        foreach( $user->roles as $role ) { 
    235236                if (in_array($role, wp_iminr_get_option('desable_for_roles'))) { 
    236237                        return false;