Skip to content

Commit

Permalink
Database API changes - Use query bound queries.
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@4678 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
mantis committed Oct 29, 2007
1 parent 4be15f5 commit fb90624
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/project_hierarchy_api.php
Expand Up @@ -18,7 +18,7 @@
# along with Mantis. If not, see <http://www.gnu.org/licenses/>.

# --------------------------------------------------------
# $Id: project_hierarchy_api.php,v 1.10 2007-10-28 17:06:44 prichards Exp $
# $Id: project_hierarchy_api.php,v 1.11 2007-10-29 23:47:00 prichards Exp $
# --------------------------------------------------------

### Project Hierarchy API ###
Expand Down Expand Up @@ -103,7 +103,7 @@ function project_hierarchy_cache( $p_show_disabled = false ) {
WHERE $t_enabled_clause
ORDER BY p.name";

$result = db_query_bound( $query, Array( true ) );
$result = db_query_bound( $query, ($p_show_disabled ? null : Array( true ) ) );
$row_count = db_num_rows( $result );

$g_cache_project_hierarchy = array();
Expand Down

0 comments on commit fb90624

Please sign in to comment.