This commit is contained in:
botanic 2014-09-03 05:00:36 -07:00
parent b4afdda535
commit 192bc8a076
2 changed files with 2 additions and 2 deletions

View file

@ -327,7 +327,7 @@ class Support_Group{
*/
public function update(){
$dbl = new DBLayer("lib");
$dbl->update("`support_group`", Array('Name' => $this->getName(), 'Tag' => $this->getTag(), 'GroupEmail' => $this->getGroupEmail(), 'IMAP_MailServer' => $this->getIMAP_MailServer(), 'IMAP_Username' => $this->getIMAP_Username(), 'IMAP_password' => $this->getIMAP_Password(), "`SGroupId` = $this->getSGroupId()"));
$dbl->update("`support_group`", Array('Name' => $this->getName(), 'Tag' => $this->getTag(), 'GroupEmail' => $this->getGroupEmail(), 'IMAP_MailServer' => $this->getIMAP_MailServer(), 'IMAP_Username' => $this->getIMAP_Username(), 'IMAP_password' => $this->getIMAP_Password()), "`SGroupId` = ".$this->getSGroupId());
}

View file

@ -202,7 +202,7 @@ class Users{
* @param $email the email address
* @return true or false
*/
public function validEmail( $email ){
public static function validEmail( $email ){
$isValid = true;
$atIndex = strrpos( $email, "@" );
if ( is_bool( $atIndex ) && !$atIndex ){