Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix a wrong validation event check.

  • Loading branch information...
commit b1a94a6681f5ff793373b01da7e4ae44426192d5 1 parent bfa365b
Mehdi Lahmam mehlah authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  libraries/li3_users/models/Users.php
2  libraries/li3_users/models/Users.php
View
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.