forked from GNUsocial/gnu-social
Proper error message in exception
This commit is contained in:
parent
5ba6be1a87
commit
6606781916
@ -371,7 +371,7 @@ abstract class Managed_DataObject extends Memcached_DataObject
|
||||
if (!array_key_exists($col, $vals)) {
|
||||
continue;
|
||||
} elseif (is_null($vals[$col])) {
|
||||
throw new ServerException("NULL values not allowed in getByPK for column '{$col}'");
|
||||
throw new ServerException("NULL values not allowed in getByKeys for column '{$col}'");
|
||||
}
|
||||
$object->$col = $vals[$col];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user