From 994f4082d60b44921360040d58f889c3d5833a9a Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Tue, 14 Jul 2015 15:33:13 -0500 Subject: [PATCH] oops: Fix crash updating canned response with attachments --- include/class.file.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/class.file.php b/include/class.file.php index ef5657313..c0b844bfc 100644 --- a/include/class.file.php +++ b/include/class.file.php @@ -546,9 +546,9 @@ class AttachmentFile extends VerySimpleModel { } static function lookup($id) { - return is_numeric($id) - ? parent::lookup($id) - : static::lookupByHash($id); + return is_string($id) + ? static::lookupByHash($id) + : parent::lookup($id); } /* -- GitLab