1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 02:39:47 +02:00

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.
This commit is contained in:
Paul Arthur 2012-08-17 14:41:57 -04:00 committed by Paul Arthur
parent 25b77a6c75
commit e9d8c44f64

View file

@ -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']);