Fix template part file
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 4 Sep 2018 21:01:28 +0000 (17:01 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 4 Sep 2018 21:01:28 +0000 (17:01 -0400)
illegal offset

style.css
template-parts/search-overlay.php

index aac3cd4..103e24e 100644 (file)
--- a/style.css
+++ b/style.css
@@ -4,7 +4,7 @@ Theme URI: http://underscores.me/
 Author: Underscores.me
 Author URI: http://underscores.me/
 Description: Description
-Version: 1.0.30
+Version: 1.0.31
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: wmta
index 0754448..9197871 100644 (file)
@@ -22,7 +22,7 @@ $cities = $decode_array['cities'];
 
             <?php if( isset($categories) && is_array($categories) ){
                     foreach ($categories as $key=>$val){ ?>
-                <?php if( $val['parent']['value'] !== 0){ ?>
+                <?php if( isset( $val['parent']['value'] ) && $val['parent']['value'] !== 0){ ?>
                     <option value="<?php echo $val['id']; ?>">&nbsp;&nbsp;&nbsp;<?php echo $val['name']; ?></option>
                 <?php } else { ?>
                     <option value="<?php echo $val['id']; ?>"><?php echo $val['name']; ?></option>