forked from Wavyzz/dolibarr
Suppress count warning in admin_extrafields_view.tpl
This commit is contained in:
@@ -67,7 +67,7 @@ if ($conf->multicompany->enabled) {
|
|||||||
print '<td width="80"> </td>';
|
print '<td width="80"> </td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
if (count($extrafields->attributes[$elementtype]['type']))
|
if (is_array($extrafields->attributes[$elementtype]['type']) && count($extrafields->attributes[$elementtype]['type']))
|
||||||
{
|
{
|
||||||
foreach($extrafields->attributes[$elementtype]['type'] as $key => $value)
|
foreach($extrafields->attributes[$elementtype]['type'] as $key => $value)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user