@@ 388-391 (lines=4) @@ | ||
385 | return; |
|
386 | } |
|
387 | if (!is_array($array)) { |
|
388 | if (!isset($cols[static::colPrefix() . $array]) && isset(static::$cols[$array])) { |
|
389 | static::createCol($array); |
|
390 | $cols = static::cols(); |
|
391 | } |
|
392 | if (!isset($cols[$array]) && isset($cols[static::colPrefix() . $array])) { |
|
393 | $array = static::colPrefix() . $array; |
|
394 | } else { |
|
@@ 402-405 (lines=4) @@ | ||
399 | switch ($searchtype) { |
|
400 | case 'key': |
|
401 | foreach ($array as $key => $item) { |
|
402 | if (!isset($cols[static::colPrefix() . $key]) && isset(static::$cols[$key])) { |
|
403 | static::createCol($key); |
|
404 | $cols = static::cols(true); |
|
405 | } |
|
406 | if (!isset($cols[$key]) && isset($cols[static::colPrefix() . $key])) { |
|
407 | $array[static::colPrefix() . $key] = $item; |
|
408 | unset($array[$key]); |