Skip to content

Commit ad07bfe

Browse files
committed
Correct error on deletion as well.
1 parent 15eb89a commit ad07bfe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

controller/main.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ private function display_pb()
480480
{
481481
$sql = 'DELETE FROM ' . $this->table('pastebin') . '
482482
WHERE snippet_id = ' . $snippet_id;
483-
$redirect_append = '';
483+
$redirect_append = array();
484484
}
485485
}
486486
else
@@ -490,7 +490,7 @@ private function display_pb()
490490
'snippet_highlight' => $highlight,
491491
'snippet_prune_on' => $row['snippet_time'] + ($pruning_months * $this::SECONDS_MONTH),
492492
)) . ' WHERE snippet_id = ' . $snippet_id;
493-
$redirect_append = "mode=view&s=$snippet_id";
493+
$redirect_append = array("mode"=>"view","s"=>$snippet_id);
494494
}
495495
$db->sql_query($sql);
496496

0 commit comments

Comments
 (0)