Skip to content
Snippets Groups Projects
Commit 68e1669d authored by Prasad's avatar Prasad
Browse files

Fixes #1833: static accesory added to shorturl getInstance

parent da520fc7
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment