summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/rest/ogagent.php
diff options
context:
space:
mode:
authoririna <irinagomez@us.es>2018-02-27 13:13:12 +0000
committeririna <irinagomez@us.es>2018-02-27 13:13:12 +0000
commit55fcaa615c6b43eacdcf91b503cdc4b2d14d32b9 (patch)
tree772e688823287a756a9c0a300670e90ae7bc6a4f /admin/WebConsole/rest/ogagent.php
parent9f1274ec297d6ea74b55e2207f19348cd35235ec (diff)
#804 uso de Mysqli por compatibilidad de php7
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5620 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/rest/ogagent.php')
-rw-r--r--admin/WebConsole/rest/ogagent.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/WebConsole/rest/ogagent.php b/admin/WebConsole/rest/ogagent.php
index 65c6cf64..6b87b098 100644
--- a/admin/WebConsole/rest/ogagent.php
+++ b/admin/WebConsole/rest/ogagent.php
@@ -58,7 +58,7 @@ UPDATE ordenadores
WHERE ip='$ip' AND mac=UPPER(REPLACE('$mac', ':', ''))
LIMIT 1;
EOD;
- if ($cmd->Ejecutar() !== true or mysql_affected_rows() !== 1) {
+ if ($cmd->Ejecutar() !== true or mysqli_affected_rows($cmd->Conexion->controlador) !== 1) {
// DB access error or not updated.
throw new Exception("Cannot store new secret key: ip=$ip, mac=$mac, os=$osType:$osVersion.");
}