Skip to content

Commit

Permalink
pgsql fix :)
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@4716 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
mantis committed Nov 3, 2007
1 parent 10871e5 commit bb1ccdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/plugin_api.php
Expand Up @@ -241,8 +241,8 @@ function plugin_get_installed() {
function plugin_get_enabled() {
$t_plugin_table = config_get_global( 'mantis_plugin_table' );

$t_query = "SELECT basename FROM $t_plugin_table WHERE enabled=1";
$t_result = db_query( $t_query );
$t_query = "SELECT basename FROM $t_plugin_table WHERE enabled=" . db_param(0);
$t_result = db_query_bound( $t_query, Array( 1 ) );

$t_plugins = array();
while( $t_row = db_fetch_array( $t_result ) ) {
Expand Down

0 comments on commit bb1ccdd

Please sign in to comment.