diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-04-11 02:18:06 +1000 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-04-11 02:18:06 +1000 |
| commit | 1b5f2b08f4703381d958560d0c8ab7503b203618 (patch) | |
| tree | 76e22676281ac33c9106d745c58fda505b0e83b4 /inc/functions.php | |
| parent | abd65b0c8a4c032ebe8ed6e65d0bb9d071acfd06 (diff) | |
moved $OP to $post['op']. post() now has one argument instead of two.
Diffstat (limited to 'inc/functions.php')
| -rw-r--r-- | inc/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/functions.php b/inc/functions.php index 87cf745a..0a7a77d4 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -641,7 +641,7 @@ } else return false; } - function post($post, $OP) { + function post($post) { global $pdo, $board; $query = prepare(sprintf("INSERT INTO `posts_%s` VALUES ( NULL, :thread, :subject, :email, :name, :trip, :capcode, :body, :body_nomarkup, :time, :time, :thumb, :thumbwidth, :thumbheight, :file, :width, :height, :filesize, :filename, :filehash, :password, :ip, :sticky, :locked, 0, :embed)", $board['uri'])); @@ -695,7 +695,7 @@ $query->bindValue(':embed', NULL, PDO::PARAM_NULL); } - if($OP) { + if($post['op']) { // No parent thread, image $query->bindValue(':thread', null, PDO::PARAM_NULL); } else { |
