1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Remove notice about empty field data

This commit is contained in:
Cameron 2021-01-20 12:36:28 -08:00
parent ab75f150f8
commit 18546311e1
2 changed files with 5 additions and 4 deletions

View File

@ -543,10 +543,10 @@ class usersettings_shortcodes extends e_shortcode
$ue = e107::getUserExt();
$data = (array) $ue->getFields($cat);
if(empty($data))
{
trigger_error('$data was empty', E_USER_NOTICE);
}
// if(empty($data))
// {
// trigger_error('$data was empty', E_USER_NOTICE);
// }
$this->fieldInfo = [];
foreach($data as $k => $row)

View File

@ -124,6 +124,7 @@
}
// echo " --- ".$file." --- \n";
// codecept_debug("Loading file: ".$file);
ob_start();
// test for PHP Notice/Warning etc.
$error = false;