Correct little typo/bug in log display and remove ending php tag

This commit is contained in:
Brice Maron 2011-10-18 20:10:17 +02:00
parent 2ac00b378a
commit 59eac3bc29
2 changed files with 1 additions and 3 deletions

View File

@ -33,5 +33,3 @@ while ($source != "" && $source != "/" && $source != "." && $source != $userDire
if (!empty($users)) {
OC_JSON::encodedPrint($users);
}
?>

View File

@ -31,7 +31,7 @@ OC_App::setActiveNavigationEntry( "core_log" );
$entries=OC_Log::getEntries();
function compareEntries($a,$b){
return $b->time-$a>time;
return $b->time - $a->time;
}
usort($entries, 'compareEntries');