OMG this is perfect plugin but one error
-
This is exactly what I have been seeking, and it works just fine, so it seems. I am using 4.2.1 WP and PHP 5.5.12
But on the admin side, in the settings, I get this a few times:
Warning: in_array() expects parameter 2 to be array, string given in C:\wamp\www\website\wp-content\plugins\upload-quota-per-user\admin.php on line 46
This is line 46:
if(in_array($slug,get_option('uqpu_roles'))) $selected = 'selected'; else $selected = '';
<?php global $wp_roles; $roles = $wp_roles->get_names(); foreach($roles as $slug => $role) { if(in_array($slug,get_option('uqpu_roles'))) $selected = 'selected'; else $selected = ''; echo '<option value="'.$slug.'" '.$selected.'>'.$role.'</option>'; } ?>
ANY HELP would be VERY VERY appreciated.
THANKS.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘OMG this is perfect plugin but one error’ is closed to new replies.