diff options
Diffstat (limited to 'settings/ajax')
-rw-r--r-- | settings/ajax/getlog.php | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/settings/ajax/getlog.php b/settings/ajax/getlog.php index e1fc1689877..141457e72a0 100644 --- a/settings/ajax/getlog.php +++ b/settings/ajax/getlog.php @@ -12,14 +12,7 @@ $offset=(isset($_GET['offset']))?$_GET['offset']:0; $entries=OC_Log_Owncloud::getEntries($count, $offset); $data = array(); -foreach($entries as $entry) { - $data[] = array( - 'level' => OC_Util::sanitizeHTML($entry->level), - 'app' => OC_Util::sanitizeHTML($entry->app), - 'message' => OC_Util::sanitizeHTML($entry->message), - 'time' => OC_Util::sanitizeHTML($entry->time), - ); -} + OC_JSON::success(array( - "data" => $data, + "data" => $entries, "remain"=>(count(OC_Log_Owncloud::getEntries(1, $offset + $offset)) != 0) ? true : false)); |