mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
Remove notice about empty field data
This commit is contained in:
@@ -543,10 +543,10 @@ class usersettings_shortcodes extends e_shortcode
|
|||||||
$ue = e107::getUserExt();
|
$ue = e107::getUserExt();
|
||||||
$data = (array) $ue->getFields($cat);
|
$data = (array) $ue->getFields($cat);
|
||||||
|
|
||||||
if(empty($data))
|
// if(empty($data))
|
||||||
{
|
// {
|
||||||
trigger_error('$data was empty', E_USER_NOTICE);
|
// trigger_error('$data was empty', E_USER_NOTICE);
|
||||||
}
|
// }
|
||||||
|
|
||||||
$this->fieldInfo = [];
|
$this->fieldInfo = [];
|
||||||
foreach($data as $k => $row)
|
foreach($data as $k => $row)
|
||||||
|
@@ -124,6 +124,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// echo " --- ".$file." --- \n";
|
// echo " --- ".$file." --- \n";
|
||||||
|
// codecept_debug("Loading file: ".$file);
|
||||||
ob_start();
|
ob_start();
|
||||||
// test for PHP Notice/Warning etc.
|
// test for PHP Notice/Warning etc.
|
||||||
$error = false;
|
$error = false;
|
||||||
|
Reference in New Issue
Block a user