Skip to content

Instantly share code, notes, and snippets.

@karlkovaciny
Created January 10, 2013 12:59
Show Gist options
  • Save karlkovaciny/4501892 to your computer and use it in GitHub Desktop.
Save karlkovaciny/4501892 to your computer and use it in GitHub Desktop.
if (isset($_POST['inreplyto'])) { //admin is setting date
$newinreplyto = $_POST['inreplyto'];
} else if (isset($_GET['irtid'])){ //for edits by regular users
$newinreplyto = $_GET['irtid'];
} else {$newinreplyto = 0;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment