Commit 5a6f2f88 authored by Taylor Otwell's avatar Taylor Otwell

unfix bug in validator, heh.

parent 62856a15
......@@ -427,7 +427,9 @@ class Validator {
// fine for the given ID to exist in the table.
if (isset($parameters[2]))
{
$query->where($attribute, '<>', $parameters[2]);
$id = (isset($parameters[3])) ? $parameters[3] : 'id';
$query->where($id, '<>', $parameters[2]);
}
return $query->count() == 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment