1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-10 08:34:09 +02:00

Added downloads badge to readme. Removed notices from usersettings shortcode.

This commit is contained in:
Cameron
2021-01-21 06:25:20 -08:00
parent 6ee43c0e07
commit accd5d1240
2 changed files with 7 additions and 8 deletions

View File

@@ -481,10 +481,11 @@ class usersettings_shortcodes extends e_shortcode
$ret .= $this->sc_userextended_field($field);
}
}
else
{
trigger_error(__METHOD__ . ' -- $fieldList is empty. Line: ' . __LINE__, E_USER_NOTICE);
}
// if(empty($ret))
// {
// trigger_error(__METHOD__ . ' returned nothing. Line: ' . __LINE__, E_USER_NOTICE);
// }
if(!empty($ret) && ($this->extendedTabs === false))
@@ -493,10 +494,7 @@ class usersettings_shortcodes extends e_shortcode
$ret = str_replace("{CATNAME}", $tp->toHTML($catName, false, 'TITLE'), $USER_EXTENDED_CAT) . $ret;
}
if(empty($ret))
{
trigger_error(__METHOD__ . ' returned nothing. Line: ' . __LINE__, E_USER_NOTICE);
}
$this->extendedShown['cat'][$parm] = true;