aboutsummaryrefslogtreecommitdiff
path: root/lib/models/HelpTourStep.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/models/HelpTourStep.class.php')
-rw-r--r--lib/models/HelpTourStep.class.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/models/HelpTourStep.class.php b/lib/models/HelpTourStep.class.php
index d2ce1dc..6c3c572 100644
--- a/lib/models/HelpTourStep.class.php
+++ b/lib/models/HelpTourStep.class.php
@@ -1,4 +1,5 @@
<?php
+
// +---------------------------------------------------------------------------+
// This file is part of Stud.IP
//
@@ -88,9 +89,11 @@ class HelpTourStep extends SimpleORMap
* @todo Das Model sollte nix über PageLayout wissen, das sollte anders raus transportiert werden
* @return boolean true or false
*/
- public function validate() {
- if (!$this->orientation)
+ public function validate()
+ {
+ if (!$this->orientation) {
$this->orientation = 'B';
+ }
if (!$this->title && !$this->tip) {
PageLayout::postMessage(MessageBox::error(_('Der Schritt muss einen Titel oder Inhalt besitzen.')));
return false;
@@ -102,4 +105,3 @@ class HelpTourStep extends SimpleORMap
return true;
}
}
-