diff --git a/.gitignore b/.gitignore index 4875b2b547c6e1b425754a2044702228365a104b..375cad1034f93565b6ca53a1b49bb0aa17894a2f 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ public_html/classes/lang.class.php public_html/classes/pageinclude.class.php public_html/classes/render-adminlte_v2.4.class.php public_html/config/00_page.tpl.php +static/* diff --git a/public_html/classes/htmlelements.class.php b/public_html/classes/htmlelements.class.php index 18d58b69e46f14477046359e68e5a6d732a85f52..fdead018794b9b9067e46a1a55f3edd44a1856e2 100755 --- a/public_html/classes/htmlelements.class.php +++ b/public_html/classes/htmlelements.class.php @@ -25,9 +25,9 @@ class htmlelements * set of auto generated icon prefixes * @var array */ - var $_aIcons = array( + var $_aIcons = [ // 'fa-'=>'fa ', - ); + ]; /** * label of an html tag (pseudo attribute) @@ -39,7 +39,7 @@ class htmlelements * hash of attributes and values of an html tag * @var array */ - var $_aAttributes = array(); + var $_aAttributes = []; // ---------------------------------------------------------------------- @@ -166,7 +166,7 @@ class htmlelements * @param array $aAttributes attributes of the select tag * @return string */ - public function getFormInput($aAttributes) + public function getFormInput(array $aAttributes): string { $sTpl = '<input %s/>'; $this->_setAttributes($aAttributes); @@ -191,12 +191,12 @@ class htmlelements * @param array $aOptions array for all option fields * @return string */ - public function getFormSelect(array $aAttributes, array $aOptions = array()) + public function getFormSelect(array $aAttributes, array $aOptions = []): string { // $sTpl = '<select %s>%s</select>'; if (!count($aOptions)) { - return false; + return ''; } $sOptions = ''; foreach ($aOptions as $aOptionAttributes) {