diff options
author | Paul Arthur <flowerysong00@yahoo.com> | 2012-08-17 14:41:57 -0400 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2012-09-17 10:41:13 -0400 |
commit | e9d8c44f6479a1a3f1a6d157777754c1ae60fc25 (patch) | |
tree | 99dce577fed3467c572956a4356ded3273fb615e /lib/class/shoutbox.class.php | |
parent | 25b77a6c756496e0508b92dc58ac015091d1bc41 (diff) | |
download | ampache-e9d8c44f6479a1a3f1a6d157777754c1ae60fc25.tar.gz ampache-e9d8c44f6479a1a3f1a6d157777754c1ae60fc25.tar.bz2 ampache-e9d8c44f6479a1a3f1a6d157777754c1ae60fc25.zip |
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.
Diffstat (limited to 'lib/class/shoutbox.class.php')
-rw-r--r-- | lib/class/shoutbox.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
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']); |