Skip to content

Commit cde00ff

Browse files
author
Marius Burkard
committed
- change == to ===
1 parent de9ea81 commit cde00ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

interface/web/admin/directive_snippets_edit.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ public function onAfterUpdate() {
8585
global $app, $conf;
8686

8787
if(isset($this->dataRecord['update_sites']) && $this->dataRecord['update_sites'] === 'y') {
88-
if($this->dataRecord['active'] == 'y' && $this->dataRecord['update_sites'] == 'y') {
89-
if($this->dataRecord['type'] == 'php') {
88+
if($this->dataRecord['active'] === 'y' && $this->dataRecord['update_sites'] === 'y') {
89+
if($this->dataRecord['type'] === 'php') {
9090
$rlike = $this->dataRecord['directive_snippets_id'].'|,'.$this->dataRecord['directive_snippets_id'].'|'.$this->dataRecord['directive_snippets_id'].',';
9191
$affected_snippets = $app->db->queryAllRecords('SELECT directive_snippets_id FROM directive_snippets WHERE required_php_snippets RLIKE(?) AND type = ?', $rlike, 'apache');
9292
if(is_array($affected_snippets) && !empty($affected_snippets)) {
@@ -95,7 +95,7 @@ public function onAfterUpdate() {
9595
}
9696
$affected_sites = $app->db->queryAllRecords('SELECT domain_id FROM web_domain WHERE server_id = ? AND directive_snippets_id IN ?', $conf['server_id'], $sql_in);
9797
}
98-
} elseif($this->dataRecord['type'] == 'apache') {
98+
} elseif($this->dataRecord['type'] === 'apache') {
9999
$affected_sites = $app->db->queryAllRecords('SELECT domain_id FROM web_domain WHERE server_id = ? AND directive_snippets_id = ?', $conf['server_id'], $this->dataRecord['directive_snippets_id']);
100100
}
101101

0 commit comments

Comments
 (0)