From 7294d395a62450ef72d4100cd530077421fac64a Mon Sep 17 00:00:00 2001 From: Jared Hancock <gravydish@gmail.com> Date: Sun, 22 Jul 2012 14:30:24 -0500 Subject: [PATCH] Don't show in-use warning for new canned replies --- include/staff/cannedreply.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/staff/cannedreply.inc.php b/include/staff/cannedreply.inc.php index 1dc6766c2..8739e0771 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> -- GitLab