| @@ -205,8 +205,10 @@ | ||
| 205 | 205 | { |
| 206 | 206 | //Fetch ALL dashboard widget options from the db... |
| 207 | 207 | $opts = get_option( 'dashboard_widget_options' ); |
| 208 | 208 | |
| 209 | + if(!$opts) $opts = array(); | |
| 210 | + | |
| 209 | 211 | //Get just our widget's options, or set empty array |
| 210 | 212 | $w_opts = ( isset( $opts[$widget_id] ) ) ? $opts[$widget_id] : array(); |
| 211 | 213 | |
| 212 | 214 | if ( $add_only ) { |