fixed a tag comparison bug in file_home.php

This commit is contained in:
hyung-hwan 2014-06-12 15:55:48 +00:00
parent d62b4bd248
commit f6c915d38c

View File

@ -55,13 +55,15 @@ else
{
function comp_tag ($a, $b)
{
$x = explode ('.', $a);
$y = explode ('.', $b);
//$x = explode ('.', $a);
//$y = explode ('.', $b);
$x = explode ('.', str_replace('-', '.', $a));
$y = explode ('.', str_replace('-', '.', $b));
$cx = count($x);
$cy = count($y);
$max = max($cx, $cy);
$min = min($cx, $cy);
for ($i = 0; $i < $max; $i++)
for ($i = 0; $i < $min; $i++)
{
if (is_numeric($x[$i]) && is_numeric($y[$i]))
{