// MERGE with 1.4 r7770

This commit is contained in:
rMalie
2011-07-28 09:20:57 +00:00
parent 60b07cacb9
commit c17e7c236d
968 changed files with 26082 additions and 3937 deletions
+4 -4
View File
@@ -116,7 +116,7 @@ class EmployeeCore extends ObjectModel
return $fields;
}
public function add($autodate = true, $nullValues = true)
{
$this->last_passwd_gen = date('Y-m-d H:i:s', strtotime('-'.Configuration::get('PS_PASSWD_TIME_BACK').'minutes'));
@@ -151,7 +151,7 @@ class EmployeeCore extends ObjectModel
return $this;
}
static public function employeeExists($email)
public static function employeeExists($email)
{
if (!Validate::isEmail($email))
die (Tools::displayError());
@@ -168,7 +168,7 @@ class EmployeeCore extends ObjectModel
* @param string $passwd Password
* @return boolean result
*/
static public function checkPassword($id_employee, $passwd)
public static function checkPassword($id_employee, $passwd)
{
if (!Validate::isUnsignedId($id_employee) OR !Validate::isPasswd($passwd, 8))
die (Tools::displayError());
@@ -181,7 +181,7 @@ class EmployeeCore extends ObjectModel
AND active = 1');
}
static public function countProfile($id_profile, $activeOnly = false)
public static function countProfile($id_profile, $activeOnly = false)
{
return Db::getInstance()->getValue('
SELECT COUNT(*)