aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2011-10-18 20:10:17 +0200
committerBrice Maron <brice@bmaron.net>2011-10-18 20:10:17 +0200
commit59eac3bc29426b4871b03e9d173467e7b8059501 (patch)
tree327537213d41e3c16272f566862eac35cdc41c3a
parent2ac00b378a536b67a85bf5972952663ca432d115 (diff)
downloadnextcloud-server-59eac3bc29426b4871b03e9d173467e7b8059501.tar.gz
nextcloud-server-59eac3bc29426b4871b03e9d173467e7b8059501.zip
Correct little typo/bug in log display and remove ending php tag
-rw-r--r--apps/files_sharing/ajax/getitem.php2
-rw-r--r--settings/log.php2
2 files changed, 1 insertions, 3 deletions
diff --git a/apps/files_sharing/ajax/getitem.php b/apps/files_sharing/ajax/getitem.php
index 8d51c146523..075ec043eac 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 e181a5a4967..21303c2170f 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');