Skip to content

Commit

Permalink
Fix regression in getSlide of ajax_interface
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterUpfold committed Apr 9, 2012
1 parent d1c7456 commit 7750cc0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions total-slider/ajax_interface.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,15 +194,11 @@
}

// error out if the POST format isn't right
if ( !array_key_exists('title_pos_x', $_POST) || !array_key_exists('title_pos_y', $_POST)
|| !array_key_exists('background', $_POST) || !array_key_exists('title', $_POST)
|| !array_key_exists('description', $_POST) || !array_key_exists('link', $_POST)
|| !array_key_exists('id', $_POST)
)
if ( !array_key_exists('id', $_POST) )
{
header('HTTP/1.0 400 Bad Request');
header('Content-Type: application/json');
echo json_encode(array('error' => __('You have not supplied all of the required data.', 'total_slider')));
echo json_encode(array('error' => __('You have not supplied the ID to look up.', 'total_slider')));
die();
}

Expand Down

0 comments on commit 7750cc0

Please sign in to comment.