explicitly allow equality in compare
authorJoey Schulze <joey@infodrom.org>
Tue, 15 Dec 2009 13:38:50 +0000 (14:38 +0100)
committerJoey Schulze <joey@infodrom.org>
Fri, 25 Feb 2011 17:40:23 +0000 (18:40 +0100)
phone.php

index ff8e0bd..e6bc753 100644 (file)
--- a/phone.php
+++ b/phone.php
@@ -64,7 +64,7 @@ function call_cmp($a, $b)
     return -1;
   elseif ($a['timestamp'] > $b['timestamp'])
     return -1;
-  else
+  elseif ($a['timestamp'] < $b['timestamp'])
     return 1;
   return 0;
 }