diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-08-17 12:58:10 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-08-17 12:58:10 +0200 |
commit | 29b6dd53a095fd4140bf68a5ba7a4fd57c04a82d (patch) | |
tree | 5317dac0dc1db2a2880a3eb91441559654f72340 /settings | |
parent | c538ac3081119e8bbd2aa375505ce79047a4d3f4 (diff) | |
download | nextcloud-server-29b6dd53a095fd4140bf68a5ba7a4fd57c04a82d.tar.gz nextcloud-server-29b6dd53a095fd4140bf68a5ba7a4fd57c04a82d.zip |
Compare result are already true/false
Diffstat (limited to 'settings')
-rwxr-xr-x | settings/admin.php | 2 | ||||
-rw-r--r-- | settings/ajax/getlog.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/settings/admin.php b/settings/admin.php index 10e239204f2..6c01d4007de 100755 --- a/settings/admin.php +++ b/settings/admin.php @@ -18,7 +18,7 @@ $forms=OC_App::getForms('admin'); $htaccessworking=OC_Util::ishtaccessworking(); $entries=OC_Log_Owncloud::getEntries(3); -$entriesremain=(count(OC_Log_Owncloud::getEntries(4)) > 3)?true:false; +$entriesremain=count(OC_Log_Owncloud::getEntries(4)) > 3; $tmpl->assign('loglevel', OC_Config::getValue( "loglevel", 2 )); $tmpl->assign('entries', $entries); diff --git a/settings/ajax/getlog.php b/settings/ajax/getlog.php index e7151419286..f160512b6ad 100644 --- a/settings/ajax/getlog.php +++ b/settings/ajax/getlog.php @@ -16,6 +16,6 @@ $data = array(); OC_JSON::success( array( "data" => $entries, - "remain"=>(count(OC_Log_Owncloud::getEntries(1, $offset + $count)) !== 0) ? true : false + "remain"=>count(OC_Log_Owncloud::getEntries(1, $offset + $count)) !== 0 ) ); |