From 700d84f9c29cf052ed036fd7719ce3c82d54118c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 10 Feb 2013 04:15:02 +0000 Subject: [PATCH] 'this' is not available in static methods, so get an own instance first --- application/hub/main/tools/class_HubTools.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/hub/main/tools/class_HubTools.php b/application/hub/main/tools/class_HubTools.php index 07cd8f7a5..1d203c8ef 100644 --- a/application/hub/main/tools/class_HubTools.php +++ b/application/hub/main/tools/class_HubTools.php @@ -128,8 +128,11 @@ class HubTools extends BaseHubSystem { * @return $sessionId Valid session id */ public static function resolveSessionIdByIpPort ($ipPort) { + // Get an own instance + $selfInstance = self::getSelfInstance(); + // And ask it for session id by given ip:port - $recipient = $this->getDhtInstance()->findNodeByIpPort($ipPort); + $recipient = $selfInstance->getDhtInstance()->findNodeByIpPort($ipPort); die(__METHOD__.':recipient=
'.print_r($recipient, true).'
' . PHP_EOL); // Return result -- 2.39.5