use count() instead sizeof()

This commit is contained in:
Juanjo Menent
2014-07-03 18:55:03 +02:00
parent 4c7eba0ee0
commit 24b2b83b85
2 changed files with 5 additions and 4 deletions

View File

@@ -2896,6 +2896,7 @@ function get_localtax($tva, $local, $thirdparty_buyer="", $thirdparty_seller="")
{
if ($local == 1)
{
if(! $mysoc->localtax1_assuj) return 0;
if ($thirdparty_seller->id==$mysoc->id)
{
if (! $thirdparty_buyer->localtax1_assuj) return 0;
@@ -2908,7 +2909,7 @@ function get_localtax($tva, $local, $thirdparty_buyer="", $thirdparty_seller="")
if ($local == 2)
{
if(! $mysoc->localtax2_assuj) return 0;
if ($thirdparty_seller->id==$mysoc->id )
{
if (! $thirdparty_buyer->localtax2_assuj) return 0;
@@ -3002,7 +3003,7 @@ function isOnlyOneLocalTax($local)
$valors=explode(":", $tax);
if(sizeof($valors)>1)
if(count($valors)>1)
{
return false;
}