Explorar el Código

Fix defaultPage template to show errors from User class

Piotr Labudda hace 10 años
padre
commit
c1cb2a2a4a
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      SE/se-lib/tmpl/defaultPage.php

+ 5 - 0
SE/se-lib/tmpl/defaultPage.php

@@ -2,6 +2,11 @@
 	<?php if (!empty($errMsg)) : ?>
 		<div class="alert alert-danger"><?php echo $errMsg; ?></div>
 	<?php endif; ?>
+	<?php if (!empty($errors)) : ?>
+		<?php foreach ($errors as $errMsg) : ?>
+			<div class="alert alert-danger"><?php echo $errMsg; ?></div>
+		<?php endforeach; ?>
+	<?php endif; ?>
 
 	<?php if ('Anonymous' == User::getType()) : ?>