fixed a tag comparison bug in file_home.php
This commit is contained in:
parent
d62b4bd248
commit
f6c915d38c
@ -55,13 +55,15 @@ else
|
|||||||
{
|
{
|
||||||
function comp_tag ($a, $b)
|
function comp_tag ($a, $b)
|
||||||
{
|
{
|
||||||
$x = explode ('.', $a);
|
//$x = explode ('.', $a);
|
||||||
$y = explode ('.', $b);
|
//$y = explode ('.', $b);
|
||||||
|
$x = explode ('.', str_replace('-', '.', $a));
|
||||||
|
$y = explode ('.', str_replace('-', '.', $b));
|
||||||
$cx = count($x);
|
$cx = count($x);
|
||||||
$cy = count($y);
|
$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]))
|
if (is_numeric($x[$i]) && is_numeric($y[$i]))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user