Fix bug 1743 : comment form is not visible because of boolean management
merge from trunk git-svn-id: http://piwigo.org/svn/branches/2.1@6592 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
d28c348908
commit
24d68bed06
2 changed files with 5 additions and 0 deletions
|
@ -512,6 +512,10 @@ function boolean_to_string($var)
|
|||
{
|
||||
return $var ? 'true' : 'false';
|
||||
}
|
||||
elseif ($var=='t' || $var=='f')
|
||||
{
|
||||
return ($var=='t') ? 'true' : 'false';
|
||||
}
|
||||
else
|
||||
{
|
||||
return $var;
|
||||
|
|
|
@ -410,6 +410,7 @@ $result = pwg_query($query);
|
|||
$related_categories = array();
|
||||
while ($row = pwg_db_fetch_assoc($result))
|
||||
{
|
||||
$row['commentable'] = boolean_to_string($row['commentable']);
|
||||
array_push($related_categories, $row);
|
||||
}
|
||||
usort($related_categories, 'global_rank_compare');
|
||||
|
|
Loading…
Add table
Reference in a new issue