BugFix - database class app_uuid (#2663)

if $database->app_uuid is not set it would use '' in some conditions
which isset would test true.
This fix uses strlen instead, but also fixes number_transations app that
highlighted the flaw
This commit is contained in:
Mafoo
2017-06-09 13:31:50 -06:00
committed by FusionPBX
parent e308b17f45
commit b941879c91
2 changed files with 7 additions and 4 deletions
@@ -106,6 +106,7 @@ include "root.php";
}
$database = new database;
$database->app_name = 'number_translations';
$database->app_uuid = '6ad54de6-4909-11e7-a919-92ebcb67fe33';
$database->save($array);
if ($this->display_type == "text") {
if ($database->message['code'] != '200') {