aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-08-10 21:22:36 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-08-10 21:22:36 -0700
commit9662c44a17280781f2e0762c0bf0c53bec1ed5f2 (patch)
treea6383b190b26b08f530d3f602d691a6c3bea2821 /mod/item.php
parent06bdf8a4cfe9087573494c0b782a33d1e28ac043 (diff)
downloadvolse-hubzilla-9662c44a17280781f2e0762c0bf0c53bec1ed5f2.tar.gz
volse-hubzilla-9662c44a17280781f2e0762c0bf0c53bec1ed5f2.tar.bz2
volse-hubzilla-9662c44a17280781f2e0762c0bf0c53bec1ed5f2.zip
even more fixes
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/item.php b/mod/item.php
index acb97a062..b718c68a6 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -89,7 +89,7 @@ function item_post(&$a) {
if(count($r))
$contact_record = $r[0];
- $post_type == notags(trim($_POST['type']));
+ $post_type = notags(trim($_POST['type']));
if($post_type == 'net-comment') {
if($parent_item !== null) {
@@ -170,7 +170,7 @@ function item_post(&$a) {
);
// photo comments turn the corresponding item visible to the profile wall
if(! $parent_item['visible']) {
- $r = q("UPDATE `item` SET `visible = 1 WHERE `id` = %d LIMIT 1",
+ $r = q("UPDATE `item` SET `visible` = 1 WHERE `id` = %d LIMIT 1",
intval($parent_item['id'])
);
}