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:
parent
ab75f150f8
commit
18546311e1
@ -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)
|
||||
|
@ -124,6 +124,7 @@
|
||||
}
|
||||
|
||||
// echo " --- ".$file." --- \n";
|
||||
// codecept_debug("Loading file: ".$file);
|
||||
ob_start();
|
||||
// test for PHP Notice/Warning etc.
|
||||
$error = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user