From e9d8c44f6479a1a3f1a6d157777754c1ae60fc25 Mon Sep 17 00:00:00 2001 From: Paul Arthur Date: Fri, 17 Aug 2012 14:41:57 -0400 Subject: FS#257 - Social comments function not working. make_bool is definitely the wrong way to handle the parameter. This (untested) change might fix the bug. --- lib/class/shoutbox.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/class/shoutbox.class.php') diff --git a/lib/class/shoutbox.class.php b/lib/class/shoutbox.class.php index 42a6c04a..be6c8a94 100644 --- a/lib/class/shoutbox.class.php +++ b/lib/class/shoutbox.class.php @@ -176,7 +176,7 @@ class shoutBox { $user = Dba::escape($GLOBALS['user']->id); $text = Dba::escape(strip_tags($data['comment'])); $date = time(); - $sticky = make_bool($data['sticky']); + $sticky = isset($data['sticky']) ? 1 : 0; $object_id = Dba::escape($data['object_id']); $object_type = Dba::escape($data['object_type']); -- cgit