shazahm1 / bbPress-Support-Forums

GetShopped VIP Support Forums [w/ code fixes]
http://wordpress.org/extend/plugins/bbpress-vip-support-plugin/
6 stars 6 forks source link

PHP Warning #13

Open sudar opened 10 years ago

sudar commented 10 years ago

There are a couple of PHP warnings about undefined variables and indexes when WP_DEBUG is enabled. Some of them are

Warning: Illegal string offset 'admin' in /Users/sudarm/Dropbox/code/wp/sites/wordpress/wp-content/plugins/bbPress-Support-Forums/includes/bbps-support-functions.php on line 18

Notice: Uninitialized string offset: 0 in /Users/sudarm/Dropbox/code/wp/sites/wordpress/wp-content/plugins/bbPress-Support-Forums/includes/bbps-support-functions.php on line 18

Warning: Illegal string offset 'mod' in /Users/sudarm/Dropbox/code/wp/sites/wordpress/wp-content/plugins/bbPress-Support-Forums/includes/bbps-support-functions.php on line 18

Notice: Uninitialized string offset: 0 in /Users/sudarm/Dropbox/code/wp/sites/wordpress/wp-content/plugins/bbPress-Support-Forums/includes/bbps-support-functions.php on line 18

Warning: Illegal string offset 'user' in /Users/sudarm/Dropbox/code/wp/sites/wordpress/wp-content/plugins/bbPress-Support-Forums/includes/bbps-support-functions.php on line 22

Notice: Uninitialized string offset: 0 in /Users/sudarm/Dropbox/code/wp/sites/wordpress/wp-content/plugins/bbPress-Support-Forums/includes/bbps-support-functions.php on line 22
shazahm1 commented 10 years ago

Looks like the vars were not set before use.

sudar commented 10 years ago

Yeah I realized it after I posted this. Also this happens only till the user has not selected anything in the settings screen. It goes off once the settings are saved.