diff --git a/include/client/view.inc.php b/include/client/view.inc.php index 910d021de0fd98940996d90b311fb54a848a134e..7828e46617ac8264979cb8ed925f2cfacd99fc26 100644 --- a/include/client/view.inc.php +++ b/include/client/view.inc.php @@ -27,7 +27,7 @@ if(!$dept || !$dept->isPublic()) </tr> <tr> <th>Department:</th> - <td><?php echo Format::htmlchars($dept->getName()); ?></td> + <td><?php echo Format::htmlchars($dept instanceof Dept ? $dept->getName() : ''); ?></td> </tr> <tr> <th>Create Date:</th>