Skip to content

Commit

Permalink
Little fix to find and update the initial reference for bl/wl
Browse files Browse the repository at this point in the history
  • Loading branch information
tm1000 committed Jul 26, 2011
1 parent f36da27 commit 8949d70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function outn($text) {
$sql = "INSERT INTO `sak_bwlist` (`id`, `nn`, `permit`, `sort`, `count`) VALUES (0, '.*', 1, 0, 0)";
$db->query($sql);

$sql = 'UPDATE `asterisk`.`sak_bwlist` SET `id` = \'0\' WHERE `sak_bwlist`.`id` = 10 LIMIT 1;';
$sql = 'UPDATE `asterisk`.`sak_bwlist` SET `id` = \'0\' WHERE `sak_bwlist`.`nn` = \'.*\' LIMIT 1;';
$db->query($sql);
} elseif($ver < '2.0') {
out('Version Identified as '. $ver);
Expand All @@ -83,7 +83,7 @@ function outn($text) {
$sql = "INSERT INTO `sak_bwlist` (`id`, `nn`, `permit`, `sort`, `count`) VALUES (0, '.*', 1, 0, 0)";
$db->query($sql);

$sql = 'UPDATE `asterisk`.`sak_bwlist` SET `id` = \'0\' WHERE `sak_bwlist`.`id` = 10 LIMIT 1;';
$sql = 'UPDATE `asterisk`.`sak_bwlist` SET `id` = \'0\' WHERE `sak_bwlist`.`nn` = \'.*\' LIMIT 1;';
$db->query($sql);
} else {
out('Version Identified as '. $ver);
Expand Down

0 comments on commit 8949d70

Please sign in to comment.