DataObjects/Person.php
authorAlan Knowles <alan@roojs.com>
Fri, 15 Nov 2013 08:58:23 +0000 (16:58 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 15 Nov 2013 08:58:23 +0000 (16:58 +0800)
DataObjects/Person.php

index 02c363d..7bcf8e8 100644 (file)
@@ -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");
         }