Added function update_manger_get_last_message

This commit is contained in:
fermin831 2016-06-14 14:51:10 +02:00
parent 03cb8b6f5e
commit fffa84620f
1 changed files with 13 additions and 0 deletions

View File

@ -772,6 +772,19 @@ function update_manger_get_read_message ($message_id, $rollback = false) {
return false;
}
// Get the last message
function update_manger_get_last_message () {
global $config;
$sql = 'SELECT data, svn_version, db_field_value FROM tupdate ';
$sql .= 'WHERE data_rollback NOT LIKE \'%"' . $config['id_user'] . '":1%\' ';
$sql .= 'OR data_rollback IS NULL ';
$sql .= 'ORDER BY svn_version DESC ';
$message = db_get_row_sql($sql);
return $message;
}
function update_manager_get_total_messages () {
global $config;