mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-24 18:31:29 +01:00
Fix: replace sizeof() by count()
This commit is contained in:
@@ -903,7 +903,7 @@ function weight_convert($weight,&$from_unit,$to_unit)
|
||||
function dol_set_user_param($db, $conf, &$user, $tab)
|
||||
{
|
||||
// Verification parametres
|
||||
if (sizeof($tab) < 1) return -1;
|
||||
if (count($tab) < 1) return -1;
|
||||
|
||||
$db->begin();
|
||||
|
||||
@@ -1080,11 +1080,11 @@ function getListOfModels($db,$type,$maxfilenamelength=0)
|
||||
if (is_dir($tmpdir))
|
||||
{
|
||||
$tmpfiles=dol_dir_list($tmpdir,'files',0,'\.odt');
|
||||
if (sizeof($tmpfiles)) $listoffiles=array_merge($listoffiles,$tmpfiles);
|
||||
if (count($tmpfiles)) $listoffiles=array_merge($listoffiles,$tmpfiles);
|
||||
}
|
||||
}
|
||||
|
||||
if (sizeof($listoffiles))
|
||||
if (count($listoffiles))
|
||||
{
|
||||
foreach($listoffiles as $record)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user