From 37fccba89cabf318ea8b88bb48e2ca55ac855d6f Mon Sep 17 00:00:00 2001
From: Till Brehm <tbrehm@ispconfig.org>
Date: Mon, 30 Dec 2013 12:32:19 -0500
Subject: [PATCH] Added a function to query the ispconfig version to the remote api.

---
 interface/lib/classes/auth.inc.php |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/interface/lib/classes/auth.inc.php b/interface/lib/classes/auth.inc.php
index 36ec114..706dd04 100644
--- a/interface/lib/classes/auth.inc.php
+++ b/interface/lib/classes/auth.inc.php
@@ -33,6 +33,7 @@
 
 	public function get_user_id()
 	{
+		global $app;
 		return $app->functions->intval($_SESSION['s']['user']['userid']);
 	}
 

--
Gitblit v1.9.1