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:
parent
25b77a6c75
commit
e9d8c44f64
1 changed files with 1 additions and 1 deletions
|
@ -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']);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue