Skip to content

Commit 015f580

Browse files
committed
Shop - Fix: [] operator not supported for strings (Admin)
1 parent b36cd1a commit 015f580

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • ForgeIgniter/modules/shop/controllers

ForgeIgniter/modules/shop/controllers/admin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ function add_product()
139139
else
140140
{
141141
// tidy tags
142-
$tags = '';
142+
$tags = [];
143143
if ($this->input->post('tags'))
144144
{
145145
foreach (explode(',', $this->input->post('tags')) as $tag)
@@ -265,7 +265,7 @@ function edit_product($productID)
265265
}
266266

267267
// tidy tags
268-
$tags = '';
268+
$tags = [];
269269
if ($this->input->post('tags'))
270270
{
271271
foreach (explode(',', $this->input->post('tags')) as $tag)

0 commit comments

Comments
 (0)