projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42faf7c
)
DataObjects/Person.php
author
Alan Knowles
<alan@roojs.com>
Fri, 15 Nov 2013 08:58:23 +0000
(16:58 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 15 Nov 2013 08:58:23 +0000
(16:58 +0800)
DataObjects/Person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Person.php
b/DataObjects/Person.php
index
02c363d
..
7bcf8e8
100644
(file)
--- a/
DataObjects/Person.php
+++ b/
DataObjects/Person.php
@@
-934,8
+934,12
@@
class Pman_Core_DataObjects_Person extends DB_DataObject
}
- function importFromArray($roo, $persons, $
prefix
)
+ function importFromArray($roo, $persons, $
opts
)
{
+ if (empty($opts['prefix'])) {
+ $roo->jerr("opts[prefix] is empty - you can not just create passwords based on the user names");
+ }
+
if (!is_array($persons) || empty($persons)) {
$roo->jerr("error in the person data. - empty on not valid");
}