diff --git a/modules/Vtiger/helpers/ShortURL.php b/modules/Vtiger/helpers/ShortURL.php
index 7c938165888491a6db994aa45caa4f448d47405f..ef00176f88900d1e640b244de422120c6d83f234 100644
--- a/modules/Vtiger/helpers/ShortURL.php
+++ b/modules/Vtiger/helpers/ShortURL.php
@@ -85,7 +85,7 @@ class Vtiger_ShortURL_Helper {
 		echo base64_decode('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=');
 	}
 
-	function getInstance($id) {
+	static function getInstance($id) {
 		$db = PearDatabase::getInstance();
 		$self = new self();
 		$rs = $db->pquery('SELECT * FROM vtiger_shorturls WHERE uid=?', array($id));
@@ -120,4 +120,4 @@ class Vtiger_ShortURL_Helper {
 		$db = PearDatabase::getInstance();
 		$db->pquery('DELETE FROM vtiger_shorturls WHERE id=?', array($this->id));
 	}
-}
\ No newline at end of file
+}