Update database.php

This commit is contained in:
FusionPBX 2019-09-18 20:39:28 -06:00 committed by GitHub
parent b43ea72b33
commit 0d6e96a18b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class plugin_database {
//check the username and password if they don't match then redirect to the login
$sql = "select * from v_users ";
if (strlen($this->key) > 30) {
$sql .= "where api_key = :key ";
$sql .= "where api_key = :api_key ";
$parameters['api_key'] = $this->key;
}
else {