From 5e296b7deb0064e0bc07ab7523e85776052a39ec Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Wed, 2 Nov 2016 15:12:02 +0000 Subject: [PATCH] fixed an operator precedence issue of the ternary operator --- codepot/src/codepot/views/file_home.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/codepot/src/codepot/views/file_home.php b/codepot/src/codepot/views/file_home.php index b0bdf932..07410337 100644 --- a/codepot/src/codepot/views/file_home.php +++ b/codepot/src/codepot/views/file_home.php @@ -309,8 +309,7 @@ $this->load->view ( if ($q != 0) return $q; } - return ($cx > $cy)? 1: - ($cx < $cy)? -1: 0; + return ($cx > $cy)? 1: (($cx < $cy)? -1: 0); } function comp_files ($a, $b)