Skip to content

Commit 2f5ac19

Browse files
author
Januar Siregar
committed
change get or from get
1 parent b3acd68 commit 2f5ac19

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
/norm.sublime-*
55
/docs/api
66
/sqlnet.log
7+
.phpintel

src/Norm/Controller/NormController.php

+9-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,15 @@ public function getCriteria()
8888
*/
8989
public function getOr()
9090
{
91-
$or = $this->request->get('!or') ? array("!or" => $this->request->get('!or')): array();
91+
$or = array();
92+
93+
if($this->request->get('!or')){
94+
foreach ($this->request->get('!or') as $key => $value) {
95+
$or[] = array($key => $value);
96+
}
97+
98+
$or = array("!or" => $or);
99+
}
92100

93101
return $or;
94102
}

0 commit comments

Comments
 (0)