From 65ea2ecf27418feaf7681a02d74168d0d82626fb Mon Sep 17 00:00:00 2001
From: mcramer <m.cramer@pixcept.de>
Date: Thu, 13 Sep 2012 12:28:26 -0400
Subject: [PATCH] Fixed/Implemented: replaced intval() by $app->functions->intval() in all interface functions due to big number problem in intval()

---
 interface/web/admin/login_as.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/interface/web/admin/login_as.php b/interface/web/admin/login_as.php
index 8078977..6c6b487 100644
--- a/interface/web/admin/login_as.php
+++ b/interface/web/admin/login_as.php
@@ -45,10 +45,10 @@
 }
 
 if(isset($_GET['id'])) {
-	$userId = intval($_GET['id']);
+	$userId = $app->functions->intval($_GET['id']);
 	$backlink = 'admin/users_list.php';
 } else {
-	$client_id = intval($_GET['cid']);
+	$client_id = $app->functions->intval($_GET['cid']);
 	$tmp_client = $app->db->queryOneRecord("SELECT username FROM client WHERE client_id = $client_id");
 	$tmp_sys_user = $app->db->queryOneRecord("SELECT userid FROM sys_user WHERE username = '".$app->db->quote($tmp_client['username'])."'");
 	$userId = $tmp_sys_user['userid'];

--
Gitblit v1.9.1