Permalink
Browse files

Merge pull request #5 from mehlah/fix-validation-event-check

Fix a wrong validation event check.
  • Loading branch information...
2 parents bfa365b + b1a94a6 commit 79caa3d6a8f10c582f57559468bdff5f8e3145e5 @gwoo gwoo committed Jun 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 libraries/li3_users/models/Users.php
@@ -15,7 +15,7 @@
$conditions = array();
if (!empty($value)) {
$conditions[$options['field']] = $value;
- if ($options['events']['update'] && !empty($options['values']['_id'])) {
+ if ($options['events'] == 'update' && !empty($options['values']['_id'])) {
if ($options['field'] == '_id' && $value == $options['values']['_id']) {
return true;
}

0 comments on commit 79caa3d

Please sign in to comment.