From 84a7df5ecbb673176f2e0237d29f0cffe10dd0b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Fri, 27 Oct 2017 17:06:42 +0200 Subject: [PATCH] Fixed display of errormsg when permissions are missing --- application/views/system/udf.php | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/application/views/system/udf.php b/application/views/system/udf.php index 058d73ec3..426c09f24 100644 --- a/application/views/system/udf.php +++ b/application/views/system/udf.php @@ -1,7 +1,7 @@ load->view("templates/header", array("title" => "UDF", "widgetsCSS" => true)); ?> - + - + Saved! - +
retval; - foreach ($errors as $error) + if(is_array($errors)) { - foreach ($error as $fieldError) + foreach ($errors as $error) { - echo $fieldError->msg . ' -> ' . $fieldError->retval . '
'; + foreach ($error as $fieldError) + { + echo $fieldError->msg . ' -> ' . $fieldError->retval . '
'; + } } } + else + echo $result->retval; ?> - +


@@ -43,7 +48,7 @@ } ?>
- +
@@ -120,7 +125,7 @@
- + - +
- + - -load->view("templates/footer"); ?> \ No newline at end of file + +load->view("templates/footer"); ?>