diff --git a/inc/RemoteAPICore.php b/inc/RemoteAPICore.php index c04a14f5c3304a33da74b87c6992f6a28c0b5a74..fef0b81ddda086ce2a0b8077b0ddc5d33327f739 100644 --- a/inc/RemoteAPICore.php +++ b/inc/RemoteAPICore.php @@ -654,7 +654,9 @@ class RemoteAPICore { if(count($revisions)>0 && $first==0) { array_unshift($revisions, ''); // include current revision - array_pop($revisions); // remove extra log entry + if ( count($revisions) > $conf['recent'] ){ + array_pop($revisions); // remove extra log entry + } } if(count($revisions) > $conf['recent']) {