2013-03-06 Miguel de Dios <miguel.dedios@artica.es>

* include/functions_io.php, include/db/mysql.php: fixed warnings
	messages from PHP.
	
	Fixes: #3607014




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7799 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2013-03-06 17:28:55 +00:00
parent f750c167ae
commit d36e33d9a5
3 changed files with 20 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2013-03-06 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_io.php, include/db/mysql.php: fixed warnings
messages from PHP.
Fixes: #3607014
2013-03-06 Miguel de Dios <miguel.dedios@artica.es> 2013-03-06 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/configurar_agente.php: fixed the lost ip in the * godmode/agentes/configurar_agente.php: fixed the lost ip in the

View File

@ -712,8 +712,13 @@ function mysql_db_get_all_rows_filter ($table, $filter = array(), $fields = fals
function mysql_db_get_num_rows ($sql) { function mysql_db_get_num_rows ($sql) {
$result = mysql_query($sql); $result = mysql_query($sql);
if ($result) {
return mysql_num_rows($result); return mysql_num_rows($result);
} }
else {
return 0;
}
}
/** /**
* Get all the rows in a table of the databes filtering from a field. * Get all the rows in a table of the databes filtering from a field.
@ -926,8 +931,13 @@ function mysql_db_get_all_row_by_steps_sql($new = true, &$result, $sql = null) {
if ($new == true) if ($new == true)
$result = mysql_query($sql); $result = mysql_query($sql);
if ($result) {
return mysql_fetch_assoc($result); return mysql_fetch_assoc($result);
} }
else {
return array();
}
}
/** /**
* Starts a database transaction. * Starts a database transaction.

View File

@ -382,7 +382,7 @@ function __ ($string /*, variable arguments */) {
return $tranlateString; return $tranlateString;
} }
} }
elseif ($config['enterprise_installed'] && elseif (enterprise_installed() &&
isset($config['translate_string_extension_installed']) && isset($config['translate_string_extension_installed']) &&
$config['translate_string_extension_installed'] == 1 && $config['translate_string_extension_installed'] == 1 &&
array_key_exists('translate_string.php', $extensions)) { array_key_exists('translate_string.php', $extensions)) {