diff --git a/include/client/view.inc.php b/include/client/view.inc.php
index a369ee75db623f3583934048db3902f4bb538b82..469740f6c7e60d1c434d8b1d9709c4c27fcfe89e 100644
--- a/include/client/view.inc.php
+++ b/include/client/view.inc.php
@@ -31,7 +31,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>