From 1b5f2b08f4703381d958560d0c8ab7503b203618 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Wed, 11 Apr 2012 02:18:06 +1000 Subject: moved $OP to $post['op']. post() now has one argument instead of two. --- inc/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inc/functions.php') 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 { -- cgit v1.3