Skip to content

Commit 75e8f03

Browse files
authored
Fixed issue: certain point the posts are connected to all the categories
1 parent ad60f5f commit 75e8f03

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Model/Import/Aw.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ public function execute()
161161

162162
while ($data = mysqli_fetch_assoc($result)) {
163163
/* Find post categories*/
164+
$postCategories = [];
164165
$c_sql = 'SELECT cat_id as category_id FROM '.$_pref.'aw_blog_post_cat WHERE post_id = "'.$data['post_id'].'"';
165166
$c_result = $this->_mysqliQuery($c_sql);
166167
while ($c_data = mysqli_fetch_assoc($c_result)) {

0 commit comments

Comments
 (0)