minor bugfixes

This commit is contained in:
SJ committed 2012-04-27 21:25:54 +02:00
1 parent 987d27856a
commit ee7a51f1dd
5 files changed
+7 -86

No files matched your search

+4 -4
View File
@@ -29,15 +29,15 @@ class ModelAuditAudit extends Model {
}
if(isset($data['ipaddr'])) {
$where .= " AND ipaddr IN (" . $this->append_search_criteria($data['ipaddr'], &$arr) . ")";
$where .= " AND ipaddr IN (" . $this->append_search_criteria($data['ipaddr'], $arr) . ")";
}
if(isset($data['user'])) {
$where .= " AND email IN (" . $this->append_search_criteria($data['user'], &$arr) . ")";
$where .= " AND email IN (" . $this->append_search_criteria($data['user'], $arr) . ")";
}
if(isset($data['ref'])) {
$where .= " AND ref IN (" . $this->append_search_criteria($data['ref'], &$arr) . ")";
$where .= " AND ref IN (" . $this->append_search_criteria($data['ref'], $arr) . ")";
}
@@ -98,7 +98,7 @@ class ModelAuditAudit extends Model {
}
private function append_search_criteria($s = '', $arr = array()) {
private function append_search_criteria($s = '', &$arr = array()) {
$q = "";
$a = explode("*", $s);