Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions controllers/admin/AdminConfigureSlidesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ class AdminConfigureSlidesController extends ModuleAdminController
public function ajaxProcessUpdateSlidesPosition()
{
if (empty(Tools::getValue('action')) || Tools::getValue('action') != 'updateSlidesPosition' || empty(Tools::getValue('slides'))) {
ob_end_clean();
if (ob_get_contents()) {
ob_end_clean();
}

header('Content-Type: application/json');
$this->ajaxRender(json_encode(['error' => true]));
exit;
Expand All @@ -40,7 +43,10 @@ public function ajaxProcessUpdateSlidesPosition()
// Wipe module cache
$this->module->clearCache();

ob_end_clean();
if (ob_get_contents()) {
ob_end_clean();
}

header('Content-Type: application/json');
$this->ajaxRender(json_encode(['success' => true]));
exit;
Expand Down
Loading