summaryrefslogtreecommitdiff
path: root/lib/exe
diff options
context:
space:
mode:
authorAndreas Gohr <gohr@cosmocode.de>2010-08-11 14:01:40 +0200
committerAndreas Gohr <gohr@cosmocode.de>2010-08-11 14:01:40 +0200
commitd259f728f887b2ad76a2531705eac51b7dda8676 (patch)
tree599da1d8f2de89752a699f53872baf10fa1f581f /lib/exe
parent41c141178e9733bbf38f8e937d3dea63058af0dc (diff)
downloadrpg-d259f728f887b2ad76a2531705eac51b7dda8676.tar.gz
rpg-d259f728f887b2ad76a2531705eac51b7dda8676.tar.bz2
fixed locktimer/draft saving on new pages
When creating new pages, no date field is added in the edit form.
Diffstat (limited to 'lib/exe')
-rw-r--r--lib/exe/ajax.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/exe/ajax.php b/lib/exe/ajax.php
index 2945cca32..533b8f91c 100644
--- a/lib/exe/ajax.php
+++ b/lib/exe/ajax.php
@@ -139,7 +139,7 @@ function ajax_lock(){
'prefix' => $_POST['prefix'],
'text' => $_POST['wikitext'],
'suffix' => $_POST['suffix'],
- 'date' => $_POST['date'],
+ 'date' => (int) $_POST['date'],
'client' => $client,
);
$cname = getCacheName($draft['client'].$id,'.draft');