2011-11-25 Juan Manuel Ramon <juanmanuel.ramon@artica.es>

* godmode/agentes/module_manager.php: Fixed an sql error.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5170 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
juanmanuelr 2011-11-25 10:42:33 +00:00
parent d8035b6f0f
commit dfef5e3c71
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2011-11-25 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* godmode/agentes/module_manager.php: Fixed an sql error.
2011-11-25 Sergio Martin <sergio.martin@artica.es>
* include/functions_config.php: Fixed API IP list of

View File

@ -296,7 +296,7 @@ switch ($config["dbtype"]) {
if(!isset($limit_sql)) {
$limit_sql = " LIMIT $offset, $limit ";
}
$sql = sprintf("SELECT %s total FROM tagente_modulo WHERE %s (%s) %s %s",
$sql = sprintf("SELECT %s FROM tagente_modulo WHERE %s (%s) %s %s",
$params, $extra_sql, $where, $order_sql, $limit_sql);
$modules = db_get_all_rows_sql($sql);
@ -305,7 +305,7 @@ switch ($config["dbtype"]) {
$set = array();
$set['limit'] = $limit;
$set['offset'] = $offset;
$sql = sprintf("SELECT %s total FROM tagente_modulo WHERE %s (%s) %s",
$sql = sprintf("SELECT %s FROM tagente_modulo WHERE %s (%s) %s",
$params, $extra_sql, $where, $order_sql);
$modules = oracle_recode_query ($sql, $set, 'AND', false);
break;