summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/rest/ogagent.php
diff options
context:
space:
mode:
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.");
}