diff --git a/include/staff/cannedreply.inc.php b/include/staff/cannedreply.inc.php
index 1dc6766c2b48bebe341f6272e3c6c27a08db3a9a..8739e0771fda6d9aca32d772626adb344bb6ad81 100644
--- a/include/staff/cannedreply.inc.php
+++ b/include/staff/cannedreply.inc.php
@@ -107,7 +107,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
         </tr>
     </tbody>
 </table>
- <?php if ($canned->getFilters()) { ?>
+ <?php if ($canned && $canned->getFilters()) { ?>
     <br/>
     <div id="msg_warning">Canned reply is in use by email filter(s): <?php
     echo implode(', ', $canned->getFilters()); ?></div>