dxw / whippet-server

Whippet Server launches a stand-alone web server for a specific WordPress installation. It makes WordPress easier to develop with, for example, by adding lots of debug information to the terminal without cluttering up or breaking your templates.
ISC License
80 stars 6 forks source link

When accessing a non-existent wp-option, whippet-server throws an error #52

Open dgmstuart opened 9 years ago

dgmstuart commented 9 years ago

I have the following in my plugin code:

Whippet::print_r(get_option("foo"));

I get the following error in the console

Notice: Uninitialized string offset: 0 in /Users/dxwduncan/Dev/whippet-server/lib/whippet.class.php at line 131

Maybe this is expected, but I feel like at least a more relevant error message would be useful.