Minor Formatting

This commit is contained in:
steve-lad 2021-06-03 13:51:38 +02:00
parent f4927793ee
commit d72a19f9e8
3 changed files with 7 additions and 8 deletions

View file

@ -64,7 +64,6 @@
<field name="backgroundImage" type="string" length="255" default="NULL" notnull="false"/> <field name="backgroundImage" type="string" length="255" default="NULL" notnull="false"/>
<field name="backgroundThumbnail" type="string" length="255" default="NULL" notnull="false"/> <field name="backgroundThumbnail" type="string" length="255" default="NULL" notnull="false"/>
<field name="ringtone" type="string" length="255" default="NULL" notnull="false"/> <field name="ringtone" type="string" length="255" default="NULL" notnull="false"/>
<field name="name" type="string" length="15" default="" primarykey="true"/>
<field name="callhistory_answered_elsewhere" type="string" default="NULL" notnull="false"/> <field name="callhistory_answered_elsewhere" type="string" default="NULL" notnull="false"/>
<field name="_hwlang" type="string" length="12" default="NULL" notnull="false"/> <field name="_hwlang" type="string" length="12" default="NULL" notnull="false"/>
<field name="_loginname" type="string" length="20" default="NULL" notnull="false"/> <field name="_loginname" type="string" length="20" default="NULL" notnull="false"/>

View file

@ -34,11 +34,11 @@ if (!defined('FREEPBX_IS_AUTH')) {
die('No direct script access allowed'); die('No direct script access allowed');
} }
global $db; global $db;
$version = FreePBX::Config()->get('ASTVERSION'); $version = FreePBX::Config()->get('ASTVERSION');
out('Removing all Sccp_manager tables'); out('Removing all Sccp_manager tables');
$tables = array('sccpdevmodel', 'sccpsettings'); $tables = array('sccpdevmodel', 'sccpsettings');
foreach ($tables as $table) { foreach ($tables as $table) {
$sql = "DROP TABLE IF EXISTS {$table}"; $sql = "DROP TABLE IF EXISTS {$table}";
$result = $db->query($sql); $result = $db->query($sql);
@ -77,5 +77,5 @@ if (!empty($version)) {
* *
*/ */
} }
echo "done<br>\n"; echo "done<br>\n";
?>

View file

@ -263,13 +263,13 @@
function SetColColorFirm(value, row, index) { function SetColColorFirm(value, row, index) {
if (row['validate'].split(';')[0] === 'no') { if (row['validate'].split(';')[0] === 'no') {
return 'No found '+ value; return 'Not found '+ value;
} }
return value; return value;
} }
function SetColColorTempl(value, row, index) { function SetColColorTempl(value, row, index) {
if (row['validate'].split(';')[1] === 'no') { if (row['validate'].split(';')[1] === 'no') {
return 'No found ' + value ; return 'Not found ' + value ;
} }
return value; return value;