mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-08 19:42:15 +09:00
Issue 2330: ruleset custom rule in case of file field
git-svn-id: http://xe-core.googlecode.com/svn/branches/luminous@11130 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ade85caf58
commit
47a05c9259
1 changed files with 7 additions and 1 deletions
|
|
@ -239,7 +239,13 @@ class Validator
|
||||||
$value = $exists ? $fields[$fname] : null;
|
$value = $exists ? $fields[$fname] : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(is_array($value)) $value = implode('', $value);
|
if(is_array($value)) {
|
||||||
|
if(!isset($value[tmp_name])){
|
||||||
|
$value = implode('', $value);
|
||||||
|
}else{
|
||||||
|
$value = $value['name'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// conditional statement
|
// conditional statement
|
||||||
foreach($filter['if'] as $cond) {
|
foreach($filter['if'] as $cond) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue