Department user validation problem fixed

This commit is contained in:
Enrique Ponce de Leon
2011-02-15 19:19:25 +00:00
parent 08797206c9
commit fff45fe580
3 changed files with 11 additions and 4 deletions

View File

@@ -97,6 +97,14 @@ public function userExists($UsrUid)
throw(new Exception( "The row '" . $UsrUid . "' in table USER doesn't exist!" ));
}
}
catch (PropelException $e){ //capture invalid birthday date and replace by null
$msg = $e->getMessage();
if (strpos('Unable to parse value of [usr_birthday]', $msg) != -1) {
$oRow->setUsrBirthday(null);
$oRow->save();
return $this->load($UsrUid);
}
}
catch (Exception $oError) {
throw($oError);
}