Skip to content

Commit 079a50c

Browse files
author
Blake Bertuccelli
committed
Fix issue with axe not being declared in meta.
1 parent 4607a4e commit 079a50c

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

models/db.php

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -851,30 +851,33 @@ public static function create_meta_table(){
851851
$wave_sql = '';
852852
}
853853
if(isset($GLOBALS['axe_uri'])){
854-
$axe_sql = "('axe_uri', ?),";
855-
$params[] = $GLOBALS['axe_uri'];
854+
$axe_param = $GLOBALS['axe_uri'];
856855
}else{
857-
$axe_sql = '';
856+
$axe_param = '';
858857
}
859858

860-
// Now, create the content in the meta table.
859+
// Now, create the content in the meta table
860+
// with axe, since it's on by default.
861861
$sql_2 = "
862862
INSERT INTO `meta` (meta_name, meta_value)
863863
VALUES".
864864
$wave_sql.
865-
$axe_sql.
866-
"('active_integrations', ?),
865+
"('axe_uri', ?),
866+
('active_integrations', ?),
867867
('scan_status', ?),
868868
('scan_schedule', ?),
869869
('scan_log', ?),
870870
('scannable_pages', ?),
871871
('pages_scanned', ?),
872872
('last_scan_time', ?);
873873
";
874+
875+
// Default axe_uri.
876+
$params[] = $axe_param;
874877

875878
// Default active_integrations.
876879
$params[] = serialize(array('axe'));
877-
880+
878881
// Default scan_status.
879882
$params[] = '';
880883

@@ -886,7 +889,7 @@ public static function create_meta_table(){
886889

887890
// Default scannable_pages.
888891
$params[] = serialize(array());
889-
892+
890893
// Default pages_scanned.
891894
$params[] = 0;
892895

0 commit comments

Comments
 (0)