GX-Bug #44117 » MoPicsSaveFix.patch
src/admin/includes/classes/categories.php (revision ) | ||
---|---|---|
1283 | 1283 |
|
1284 | 1284 |
unset($gmRename); |
1285 | 1285 |
} |
1286 |
if(!empty($products_data['products_previous_image_' . ($i + 1)])) |
|
1287 |
{ |
|
1286 |
$mo_img = array('gm_show_image' => $gm_show_image); |
|
1287 |
$this->wrapped_db_perform(__FUNCTION__, TABLE_PRODUCTS_IMAGES, $mo_img, 'update', 'image_name = \'' . xtc_db_input($products_data['products_previous_image_' . ($i + 1)]) . '\''); |
|
1288 |
$mo_img = array('gm_show_image' => $gm_show_image); |
|
1289 |
$this->wrapped_db_perform(__FUNCTION__, TABLE_PRODUCTS_IMAGES, $mo_img, 'update', 'image_name = \'' . xtc_db_input($products_data['products_previous_image_' . ($i + 1)]) . '\''); |
|
1290 |
} |
|
1288 |
} |
|
1291 |
} |
|
1289 | 1292 |
|
1290 | 1293 |
if(isset($products_data['products_image']) && xtc_not_null($products_data['products_image']) && ($products_data['products_image'] != 'none')) |
1291 | 1294 |
{ |