From cbb6487dddb797d6d80ea8042ec92712605153c3 Mon Sep 17 00:00:00 2001 From: Nate Wright Date: Fri, 4 Mar 2016 10:49:42 +0000 Subject: [PATCH] Fix undefined string offset error --- typecase.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/typecase.php b/typecase.php index 85c20ec..7e4b3a7 100644 --- a/typecase.php +++ b/typecase.php @@ -438,6 +438,10 @@ public function ui(){ public function display_frontend(){ $fonts = get_option('typecase_fonts'); + if ( empty( $fonts ) || !is_array( $fonts ) || !isset( $fonts[0] ) ) { + return; + } + if( $fonts[0] ){ $apiUrl = &$this->api_url;