fix: small fix for an invalid error message in the sightings

pull/2002/head
iglocska 2017-02-21 14:26:33 +01:00
parent f98d9a3ea4
commit e7d1cd6f4d
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ class Sighting extends AppModel {
if (!is_array($id) && strlen($id) == 36) $conditions = array('Attribute.uuid' => $id);
else $conditions = array('Attribute.id' => $id);
} else {
if (!$values) return -1;
if (!$values) return 'No valid attributes found.';
foreach ($values as $value) {
foreach (array('value1', 'value2') as $field) {
$conditions['OR'][] = array(