Skip to content

Commit 16e3af3

Browse files
authored
Update Section.php
1 parent 2a35a38 commit 16e3af3

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Model/Section.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,25 @@ final public function validate($data)
130130
$id = $this->getModule();
131131
$k = $this->getKey();
132132

133+
$result = $this->validateIDK($id, $k);
134+
if (!$result) {
135+
$bId = 'B' . 'l' . 'o' . 'g';
136+
if ($id == $bId) {
137+
$id = $bId . 'Plus';
138+
$result = $this->validateIDK($id, $k);
139+
}
140+
}
141+
142+
return $result;
143+
}
144+
145+
/**
146+
* @param string $id
147+
* @param string $k
148+
* @return bool
149+
*/
150+
private function validateIDK($id, $k)
151+
{
133152
$l = substr($id, 1, 1);
134153
$d = (string) strlen($id);
135154

0 commit comments

Comments
 (0)