Permalink
Browse files

Fix a wrong validation event check.

  • Loading branch information...
1 parent bfa365b commit b1a94a6681f5ff793373b01da7e4ae44426192d5 @mehlah mehlah committed with mehlah Jun 19, 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 b1a94a6

Please sign in to comment.