Skip to content

Commit

Permalink
git-svn-id: http://svn.xp-dev.com/svn/Sweil_fs2/src@130 b49b0359-402e…
Browse files Browse the repository at this point in the history
…-0410-ad19-9fd90e479030
  • Loading branch information
Sweil authored and Sweil committed Dec 19, 2008
1 parent 19ab494 commit 6c5ff61
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions www/admin/admin_news_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ function default_display_entry ( $news_arr )
$entry .= '
</td>
<td class="config middle center">
<input class="pointer" type="checkbox" name="news_id['.$news_arr['news_id'].']" id="input_'.$news_arr['news_id'].'" value="'.$news_arr['news_id'].'"
<input class="pointer" type="checkbox" name="news_id[]" id="input_'.$news_arr['news_id'].'" value="'.$news_arr['news_id'].'"
onclick="'.color_click_entry ( "this", "#EEEEEE", "#64DC6A", "tr_".$news_arr['news_id'] ).'"
>
</td>
Expand Down Expand Up @@ -1347,6 +1347,7 @@ function db_delete_comment ( $DATA )
// Edit News
if ( $_POST['news_action'] == "edit" && count ( $_POST['news_id'] ) == 1 )
{
$_POST['news_id'] = $_POST['news_id'][0];
action_edit_display_page ( action_edit_get_data ( $_POST['news_id'] ) );
}

Expand All @@ -1360,6 +1361,7 @@ function db_delete_comment ( $DATA )
// Edit Comments
elseif ( $_POST['news_action'] == "comments" && count ( $_POST['news_id'] ) == 1 )
{
$_POST['news_id'] = $_POST['news_id'][0];
if (
$_POST['news_id'] && $_POST['news_action'] == "comments" &&
$_POST['comment_id'] && $_POST['comment_action']
Expand All @@ -1386,8 +1388,11 @@ function db_delete_comment ( $DATA )
////////////////////////////////////////
else
{
// Errors
echo "error";

// Filter
$_REQUEST = default_set_filter_data ( $_REQUEST );
$_REQUEST = default_set_filter_data ( $_REQUEST );
default_display_filter ( $_REQUEST );

// Display Page
Expand Down

0 comments on commit 6c5ff61

Please sign in to comment.