From: Steve Sutton Date: Thu, 23 Jul 2015 14:53:58 +0000 (-0400) Subject: update for if no subpages for int value af include pages X-Git-Tag: v0.0.2^2~22 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=117645919a8838cb5d5e46fc9fdb0524e821cea7;p=WP-Plugins%2Fglm-wp-importer.git update for if no subpages for int value af include pages --- diff --git a/controllers/Import.php b/controllers/Import.php index b2a38aa..c60c7ce 100644 --- a/controllers/Import.php +++ b/controllers/Import.php @@ -421,7 +421,9 @@ if (!empty($subPageIds)) { $where[] = "(id = {$this->_options['include_pages']}" . " OR id IN (" . implode(',', $subPageIds) . ") )"; - } + } else { + $where[] = "id = {$this->_options['include_pages']}"; + } } else { $where[] = "id IN ({$this->_options['include_pages']})";