From 59eac3bc29426b4871b03e9d173467e7b8059501 Mon Sep 17 00:00:00 2001 From: Brice Maron Date: Tue, 18 Oct 2011 20:10:17 +0200 Subject: [PATCH] Correct little typo/bug in log display and remove ending php tag --- apps/files_sharing/ajax/getitem.php | 2 -- settings/log.php | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/files_sharing/ajax/getitem.php b/apps/files_sharing/ajax/getitem.php index 8d51c14652..075ec043ea 100644 --- a/apps/files_sharing/ajax/getitem.php +++ b/apps/files_sharing/ajax/getitem.php @@ -33,5 +33,3 @@ while ($source != "" && $source != "/" && $source != "." && $source != $userDire if (!empty($users)) { OC_JSON::encodedPrint($users); } - -?> diff --git a/settings/log.php b/settings/log.php index e181a5a496..21303c2170 100644 --- a/settings/log.php +++ b/settings/log.php @@ -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');