Skip to content

Commit

Permalink
Bug 1743 fixed : comment form is not visible because of boolean manag…
Browse files Browse the repository at this point in the history
…ement

git-svn-id: http://piwigo.org/svn/trunk@6591 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
nikrou committed Jun 23, 2010
1 parent 186e9df commit 5561730
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/dblayer/functions_pgsql.inc.php
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions picture.php
Expand Up @@ -410,6 +410,7 @@ function default_picture_content($content, $element_info)
$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');
Expand Down

0 comments on commit 5561730

Please sign in to comment.