2013-04-16 Sergio Martin <sergio.martin@artica.es>
* include/db/mysql.php: Fix a bug with the dbresource in the function that count the result of a query. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7995 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
ecac868d5c
commit
ca9f82f4fd
|
@ -1,3 +1,8 @@
|
||||||
|
2013-04-16 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
|
* include/db/mysql.php: Fix a bug with the dbresource in the
|
||||||
|
function that count the result of a query.
|
||||||
|
|
||||||
2013-04-16 Miguel de Dios <miguel.dedios@artica.es>
|
2013-04-16 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* godmode/agentes/module_manager_editor_network.php,
|
* godmode/agentes/module_manager_editor_network.php,
|
||||||
|
|
|
@ -714,7 +714,9 @@ function mysql_db_get_all_rows_filter ($table, $filter = array(), $fields = fals
|
||||||
* @return integer The count of rows of query.
|
* @return integer The count of rows of query.
|
||||||
*/
|
*/
|
||||||
function mysql_db_get_num_rows ($sql) {
|
function mysql_db_get_num_rows ($sql) {
|
||||||
$result = mysql_query($sql);
|
global $config;
|
||||||
|
|
||||||
|
$result = mysql_query($sql, $config['dbconnection']);
|
||||||
|
|
||||||
if ($result) {
|
if ($result) {
|
||||||
return mysql_num_rows($result);
|
return mysql_num_rows($result);
|
||||||
|
|
Loading…
Reference in New Issue