diff --git a/include/class.config.php b/include/class.config.php
index 73890ea402ba9041e45970ed9aeda5a96bf5fc6a..1c2de449977114090433b6733c3c1893b7c8c62f 100644
--- a/include/class.config.php
+++ b/include/class.config.php
@@ -1294,7 +1294,7 @@ class OsticketConfig extends Config {
 
     function getLogo($site) {
         $id = $this->get("{$site}_logo_id", false);
-        return ($id) ? AttachmentFile::lookup($id) : null;
+        return ($id) ? AttachmentFile::lookup((int) $id) : null;
     }
     function getClientLogo() {
         return $this->getLogo('client');