auto-format all files; add table-definitions to test-bootstrap file
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -14,9 +14,9 @@
|
||||
* @package Functions
|
||||
*
|
||||
*/
|
||||
|
||||
function getFormFieldDataText($fieldname, $fielddata, &$input) {
|
||||
if(isset($input[$fieldname])) {
|
||||
function getFormFieldDataText($fieldname, $fielddata, &$input)
|
||||
{
|
||||
if (isset($input[$fieldname])) {
|
||||
$newfieldvalue = str_replace("\r\n", "\n", $input[$fieldname]);
|
||||
} else {
|
||||
$newfieldvalue = $fielddata['default'];
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
* @package Functions
|
||||
*
|
||||
*/
|
||||
|
||||
function getFormFieldOutputText($fieldname, $fielddata, $do_show = true)
|
||||
{
|
||||
$label = $fielddata['label'];
|
||||
|
||||
@@ -16,15 +16,13 @@
|
||||
* @package Functions
|
||||
*
|
||||
*/
|
||||
|
||||
function validateFormFieldText($fieldname, $fielddata, $newfieldvalue)
|
||||
{
|
||||
$returnvalue = 'stringformaterror';
|
||||
|
||||
if(preg_match('/^[^\0]*$/', $newfieldvalue))
|
||||
{
|
||||
|
||||
if (preg_match('/^[^\0]*$/', $newfieldvalue)) {
|
||||
$returnvalue = true;
|
||||
}
|
||||
|
||||
|
||||
return $returnvalue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user