From dc42ff597f3280d231d001acbb61c403f07d29af Mon Sep 17 00:00:00 2001 From: andi Date: Sat, 14 May 2005 19:34:04 +0200 Subject: replaced rsort with array_reverse for getRevisionInfo() darcs-hash:20050514173404-9977f-01e016ca326d65bb339d1a339c3aa1506a375b2a.gz --- inc/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/common.php b/inc/common.php index 1f79822a6..728319e09 100644 --- a/inc/common.php +++ b/inc/common.php @@ -532,7 +532,7 @@ function getRevisionInfo($id,$rev){ } $loglines = file($conf['changelog']); $loglines = preg_grep("/$rev\t\d+\.\d+\.\d+\.\d+\t$id\t/",$loglines); - rsort($loglines); //reverse sort on timestamp (shouldn't be needed) + $loglines = array_reverse($loglines); //reverse sort on timestamp (shouldn't be needed) $line = split("\t",$loglines[0]); $info['date'] = $line[0]; $info['ip'] = $line[1]; -- cgit v1.2.3