mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
PHP 7.2 compatibility: count(null) now generates a PHP warning !!
SVN:trunk[5815]
This commit is contained in:
@@ -1234,7 +1234,7 @@ abstract class DBObject implements iDisplay
|
||||
elseif ($oAtt->IsScalar())
|
||||
{
|
||||
$aValues = $oAtt->GetAllowedValues($this->ToArgsForQuery());
|
||||
if (count($aValues) > 0)
|
||||
if (is_array($aValues) && (count($aValues) > 0))
|
||||
{
|
||||
if (!array_key_exists($toCheck, $aValues))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user