summaryrefslogtreecommitdiff
path: root/htdocs/src/Post.inc.php
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2011-06-02 16:17:25 -0700
committerJesse Morgan <jesse@jesterpm.net ; true>2011-06-02 16:17:25 -0700
commitf08eb1640388e1f067102a22ec40c30f263d92c6 (patch)
treea73f2d21cff6427b9619e7072fc90a228bd7dc78 /htdocs/src/Post.inc.php
parent91feef607687b1262a949835cffd850cdd819846 (diff)
Added user management
Diffstat (limited to 'htdocs/src/Post.inc.php')
-rw-r--r--htdocs/src/Post.inc.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/htdocs/src/Post.inc.php b/htdocs/src/Post.inc.php
index 4a109d2..c29b5a9 100644
--- a/htdocs/src/Post.inc.php
+++ b/htdocs/src/Post.inc.php
@@ -98,6 +98,7 @@ class Post {
$this->info['id'] = $ret;
$this->info['stage'] = 'verification';
$this->info['secretid'] = $info['secretid'];
+ $this->indatabase = true;
}
return true;
@@ -116,6 +117,8 @@ class Post {
// Delete Post
$db->delete('post', 'id=' . $this->getId());
+
+ $this->indatabase = false;
}
public function getId() {